I’ve been doing a lot of work in LightSwitch lately, and one of the things that I’ve found frustrating is that there is no native grid component. Just last month, Component One released Studio for LightSwitch HTML which is based on Wijmo widgets for JQuery UI and JQuery Mobile.
Very excited about this release, I downloaded the trial version, and off I went. After installing the component itself, here’s what I had to do to get it to work in a new LightSwitch HTML project:
- Add the Extension according the instructions here: http://helpcentral.componentone.com/nethelp/c1htmlclientlightswitch/#!Documents/creatingacomponentonestudioforlightswitchhtmlproject.htm
- Rename the default.htm to default_orig.htm file found under the HTML Client node of Solution Explorer
- Install the NuGet Client Package according to these instructions:
I’m not sure why the default.htm didn’t overwrite during the install process, but my file rename workaround seemed sufficient.
In my test project, I first added a browse screen for SalesOrderHeader. Then I made a screen for SalesOrderDetail with a required parameter. I set up the initial browse screen to pass the SalesOrderID from the selected item when opening the ViewSalesOrderDetail screen. Lastly I added a quick AddEditSalesOrderDetail screen that would open when a particular SalesOrderDetail is selected from the grid.
It seems to work pretty well. Now it’s time to add the test code to my real project and play around with the formatting, etc.