New to Telerik UI for Blazor? Download Free 30-day trial
TreeList - Persist State
- EXAMPLE
- VIEW SOURCE
- Change Theme
default
Configurator
Control the TreeList state
Change the treelist (for example, filter, sort, page, resize columns) and
Save the treelist state, then Reload the page to see the state persisted.
Change the treelist some more and Load the state to see the last one preserved.
You can manage the treelist state with your own code to put it in a specific configuration through the Configure button.
You can also Reset the treelist to its default settings. This demo will remember your last treelist layout
until your clear your browser storage or click the Reset button.
First Name | Last Name | Hire Date | |
---|---|---|---|
|
|
|
|
Daryl | Sweeney | 2/7/2012 8:00:00 PM | |
Guy | Wooten | 3/3/2010 8:00:00 PM | |
Buffy | Weber | 7/11/2011 6:00:00 PM | |
Skyler | Cleveland | 11/10/2014 12:00:00 AM | |
Priscilla | Frank | 11/30/2014 12:00:00 AM | |
Ursula | Holmes | 6/6/2011 12:00:00 AM | |
Melvin | Carrillo | 7/21/2014 12:00:00 AM | |
Martha | Chavez | 3/12/2013 12:00:00 AM | |
Oren | Fox | 5/14/2013 12:00:00 AM | |
Amos | Barr | 3/9/2010 12:00:00 AM |
- Persist-state.razor
- EmployeeDirectoryService.cs
- EmployeeDirectoryDto.cs
Loading the demo source code...please wait.
Description
You can save and load the treelist layout so your users can continue where they left off - paging, expanded and selected items, edited item, column size and order, sorting and filtering - all treelist aspects are available. You can also control them programmatically by setting the desired state to the treelist in your own code.
This Blazor TreeList Persist State example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor 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 Blazor or ThemeBuilder.