New to Telerik UI for Blazor? Download Free 30-day trial
DockManager - Persistence
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Layout payload / status
- Persistence.razor
Description
The Telerik UI for Blazor DockManager provides state persistence through the GetState and SetState methods, along with the OnStateInit and OnStateChanged events. This allows you to save and restore the entire pane layout — including pane positions, sizes, visibility, and tab selections — across user sessions.
This demo shows how to use these APIs to implement a save/load workflow. Use the Save layout button to capture the current layout state, select a previously saved layout from the dropdown, and use Load layout to restore it. The Reset button restores the original default layout. The status log and payload panel at the bottom display real-time feedback on state changes and the serialized layout structure.