New to Telerik UI for Blazor? Download Free 30-day trial

DockManager - Persistence

Layout payload / status

Status Log
[System] DockManager initialized
Current Layout Payload
  • Persistence.razor
Loading the demo source code...please wait.
Style in ThemeBuilder
  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

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.

This Blazor DockManager Persistence 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.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.