New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ASP.NET MVC Grid State Persistence

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
persist_state.cshtml
Persist_StateController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

A common scenario is to save the customization and settings made by usres while interacting with your app and, then, restore them once they log back at some point in the future.

The Telerik UI for ASP.NET MVC Grid enables you to save and restore changes that were previously applied to its settings by using its getOptions() and setOptions() client-side methods. You can use these methods to store settings like grouping, paging, sorting, and filtering, and when needed, to restore them. This demo shows how to implement this functionality by using the localStorage key/value pair to save and load the state of the Data Grid.

For more information about the capabilities for state persistence, refer to the official Telerik UI for ASP.NET MVC Data Grid product documentation on the available state-management approaches.

Additional Apps

This Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in the ThemeBuilder.

Support & Learning Resources

Additional Resources