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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: ASP.NET MVC |
Control: Grid
Tags: ejgrid, grid, asp-mvc

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.












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

2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile