Events
This article explains the events available in the Telerik Splitter for Blazor:
- Splitter
- Pane
OnCollapse
The OnCollapse event fires when a pane is collapsed. It receives the index of the pane that was collapsed in its event arguments.
If you set the ShouldRender field of the event arguments to true, the component will re-render after the event (it will call StateHasChanged()). This can be useful if you need to change its parameters or state during the event execution and especially if you need to execute async logic in the event handler.
Handling the OnCollapse event of the splitter
OnExpand
The OnExpand event fires when a pane is expanded. It receives the index of the pane that was expanded in its event arguments.
If you set the ShouldRender field of the event arguments to true, the component will re-render after the event (it will call StateHasChanged()). This can be useful if you need to change its parameters or state during the event execution and especially if you need to execute async logic in the event handler.
Handling the OnExpand event of the splitter
OnResize
The OnResize event fires after the user has finished resizing a pane (after the mouse button is released). It fires for each resized pane and receives the index and new size in its event arguments.
If you set the ShouldRender field of the event arguments to true, the component will re-render after the event (it will call StateHasChanged()). This can be useful if you need to change its parameters or state during the event execution and especially if you need to execute async logic in the event handler.
Handle the OnResize event of the splitter
SizeChanged
The SizeChanged event is triggered when the Size parameter of the corresponding pane is changed.
Handle the SizeChanged event of a Splitter Pane
CollapsedChanged
The CollapsedChanged event is triggered when the Collapsed parameter of the corresponding pane is changed.
Handle the CollapsedChanged event of a Splitter Pane