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

DockManager - Dynamic Panes

Panes
Explorer On
Documents On
Output On
Properties On
Search Off
AllowEmpty Off
At least one pane must remain
  • Dynamic-panes.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 allows you to dynamically control pane visibility at runtime. This demo demonstrates how to show and hide individual panes using the Visible parameter on DockManagerContentPane, while the layout automatically adjusts to fill or release the freed space.

The sidebar panel provides toggle switches for each pane — Explorer, Output, Properties, and Search. Switching a pane off hides it from the layout; switching it back on restores it. When AllowEmpty is disabled, the containing DockManagerSplitPane collapses automatically when its last visible child is hidden, preventing empty regions. When AllowEmpty is enabled, the split container remains visible even with no children, which is useful for reserving layout space as a drop target.

The Reset button restores the DockManager to its original layout — including pane sizes, positions, and visibility — by capturing the initial state via the OnStateInit event and reapplying it with SetState.

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