We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to store/retrieve grid model values into/from database

How to store/retrieve grid model values into/from database

 

We can retrieve/save Grid settings/model values from or into the SQL Table and apply them to Grid.

 

HTML

 

JS

 

Razor

 

 

 

Controller

 

Render ejDropDownList to store the different time and two ejButtons for saving and applying the Grid states.

 

On Clicking the save button, current state of Grid i.e. its model values will be save in the SQL dataSource which in turn saves the respective time in the ejDropDownList.

 

Based on the ejDropDownList’s value (time), click event of “apply” button will retrieve Grid objects from the StateStore table and apply the changes to the Grid.

 

 

Likewise, follow the above steps to apply states for ASP.Net Grid.

 

The following screenshot show Persistence Grid with the dropdown and buttons for applying the Grid state.

 

Figure 1: Grid state from the dropdown

Article ID: Published Date: Last Revised Date: Platform: Control:
6314 02/15/2016 04/13/2017 LightSwitch HTML Grid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon