A splitter component that divides space between resizable panes with draggable dividers. RadzenSplitter creates layouts with user-adjustable panel sizes, ideal for multi-column interfaces or resizable sidebars. Allows users to customize their workspace by dragging dividers to resize panes. Common use cases include code editors with resizable file explorer/code/output panes, email clients with adjustable folder list/message list/message preview, admin dashboards with resizable navigation and content areas, and data analysis tools with adjustable grid/chart/filter panels. Features resizable panes (drag dividers between panes to adjust sizes), Horizontal (side-by-side) or Vertical (top-to-bottom) orientation, size control with fixed pixel sizes/percentages/auto-sized panes, min/max constraints to prevent panes from becoming too small or large, optional collapse/expand functionality per pane, and nested splitters to create complex layouts. Panes are defined using RadzenSplitterPane components. Use Size property for fixed widths/heights.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenSplitter : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderBasic horizontal splitter:
<RadzenSplitter Style="height: 400px;">
<RadzenSplitterPane Size="30%">
Left sidebar content
</RadzenSplitterPane>
<RadzenSplitterPane>
Main content (auto-sized)
</RadzenSplitterPane>
</RadzenSplitter>
Vertical splitter with min/max sizes:
<RadzenSplitter Orientation="Orientation.Vertical" Style="height: 600px;">
<RadzenSplitterPane Size="200px" Min="100px" Max="400px">
Top pane (resizable 100-400px)
</RadzenSplitterPane>
<RadzenSplitterPane>
Bottom pane (fills remaining space)
</RadzenSplitterPane>
</RadzenSplitter>A splitter component that divides space between resizable panes with draggable dividers. RadzenSplitter creates layouts with user-adjustable panel sizes, ideal for multi-column interfaces or resizable sidebars. Allows users to customize their workspace by dragging dividers to resize panes. Common use cases include code editors with resizable file explorer/code/output panes, email clients with adjustable folder list/message list/message preview, admin dashboards with resizable navigation and content areas, and data analysis tools with adjustable grid/chart/filter panels. Features resizable panes (drag dividers between panes to adjust sizes), Horizontal (side-by-side) or Vertical (top-to-bottom) orientation, size control with fixed pixel sizes/percentages/auto-sized panes, min/max constraints to prevent panes from becoming too small or large, optional collapse/expand functionality per pane, and nested splitters to create complex layouts. Panes are defined using RadzenSplitterPane components. Use Size property for fixed widths/heights.
public RadzenSplitter()Value indicating if the splitter should call StateHasChanged on resizing.
public bool ChangeStateOnResize { get; set; }
| Type | Description |
|---|---|
| bool | Value indicating if the splitter should call StateHasChanged on resizing. |
Gets or sets the panes to display within the splitter. Each RadzenSplitterPane represents one resizable section of the splitter.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the panes to display within the splitter. Each RadzenSplitterPane represents one resizable section of the splitter. |
Gets or sets the collapse callback.
public EventCallback<RadzenSplitterEventArgs> Collapse { get; set; }
| Type | Description |
|---|---|
| EventCallback<RadzenSplitterEventArgs> | Gets or sets the collapse callback. |
Gets or sets the expand callback.
public EventCallback<RadzenSplitterEventArgs> Expand { get; set; }
| Type | Description |
|---|---|
| EventCallback<RadzenSplitterEventArgs> | Gets or sets the expand callback. |
Value indicating if the splitter is resizing.
public bool IsResizing { get; }
| Type | Description |
|---|---|
| bool | Value indicating if the splitter is resizing. |
Gets or sets the layout direction of the splitter. Horizontal arranges panes side-by-side (resizable width), Vertical stacks panes top-to-bottom (resizable height).
public Orientation Orientation { get; set; }
| Type | Description |
|---|---|
| Orientation | Gets or sets the layout direction of the splitter. Horizontal arranges panes side-by-side (resizable width), Vertical stacks panes top-to-bottom (resizable height). |
Gets or sets the resize callback.
public EventCallback<RadzenSplitterResizeEventArgs> Resize { get; set; }
| Type | Description |
|---|---|
| EventCallback<RadzenSplitterResizeEventArgs> | Gets or sets the resize callback. |
Adds the pane.
public void AddPane(RadzenSplitterPane pane)
| Type | Name | Description |
|---|---|---|
| RadzenSplitterPane | pane | The pane. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Called when pane resized.
public Task OnPaneResized(int paneIndex, double sizeNew, int? paneNextIndex, double? sizeNextNew)
| Type | Name | Description |
|---|---|---|
| int | paneIndex | Index of the pane. |
| double | sizeNew | The size new. |
| int? | paneNextIndex | Index of the pane next. |
| double? | sizeNextNew | The size next new. |
| Type | Description |
|---|---|
| Task |
Called on pane resizing.
public Task OnPaneResizing()
| Type | Description |
|---|---|
| Task |
Removes the pane.
public void RemovePane(RadzenSplitterPane pane)
| Type | Name | Description |
|---|---|---|
| RadzenSplitterPane | pane | The pane. |