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

ASP.NET Core Grid State Persistence

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
persist_state.cshtml
Persist_StateController.cs
CustomerViewModel.cs
Persist_State_TagHelper.cshtml

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

A common scenario is to save the customization and settings made by users 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 Core 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 Core Data Grid product documentation on the available state-management approaches.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core 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 Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources