jquery - Create a custom Lightswitch control that mimicks the lookup function -


the lightswitch html5 built-in controls allow lookups related tables if related table has primary key related table being edited on ui.

i make custom control mimics behavior of control (the search function) table not have such primary key.

what ui components (which specific jquery ui controls lightswitch using here) involved in control, , take mimic it?

ok,

so think msdn post best way go it. firstly read post how import views datasource , set them correctly. know view in same datasource, you'll handling production database opposed intrinsic datasource controlled lightswitch designer.

bare in mind during testing id's in live data may not match test data id's.

one thing take note of "modeling key" section of msdn blog post. if don't model you're primary key right can bit messy.

to add view lightswitch application, right click data sources in server project , click add data source... choose database , click next, choose sql server provider , enter connection details database server. when click next, you'll see list of database objects can import. select view required , click finish.

those instructions combined msdn blog post should view setup lightswitch project. there need add local property html screen give combo / search box view imported.

to this, open screen. click add data item... click local property option control , in list somewhere should reference view imported, yourdatasource.yourviewname. added in properties pane on left hand side of designer. drag collection wherever need on screen , should go.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -