RadSplitter client-side events:
- OnClientLoad - raised when the initialization of the RadSplitter is complete.
- OnClientResizing - raised before the RadSplitter resizes.
- OnClientResized - raised when the RadSplitter resizes.
RadPane client-side events:
- OnClientCollapsing - raised before the RadPane is collapsed.
- OnClientCollapsed - raised when the RadPane is collapsed.
- OnClientExpanding- raised before the RadPane is expanded.
- OnClientExpanded - raised when the RadPane is expanded.
- OnClientResizing - raised before the RadPane is resized.
- OnClientResized - raised when the RadPane is resized.
All client side events take two parameters - sender and arguments:
function
OnClientLoad(sender, args) {
//sender represents the splitter that has fired the event
//the code below obtains the id of the splitter that has fired the event
var
id = sender.get_id();
}
All events that end in "ing" (i.e. OnClientResizing)" can be cancelled. To do this
you should call the set_cancel(true) method in the event handler:
function
OnClientResizing(sender, args) {
set_cancel(
true
);
}
Once, the OnClientResizing event is cancelled, the splitter/pane cannot change its width and height.
Instructions
Collapse/Resize the vertical splitter to see how the client-side events are raised.