This demo illustrates how to manipulate the DevExpress MVC Splitter programmatically on the client using our extended client-side functionality. The client-side interface is available if the EnableClientSideAPI property is set to true, or if there is a handler assigned to any client-side event. When set, an individual client control object can be referenced directly by its Name.
In this demo, the splitter's visibility (the Visible property) and size (the AllowResize property) settings can be toggled on the client via corresponding options. Option values are passed as a parameter to the SetVisible and SetAllowResize client methods. You can expand or collapse splitter panes by using a button whose caption is changed automatically depending upon the action (see the UpdateButtonState function). On the client side, the button's functionality is based on a pane's Expand and Collapse methods.
You can also change a splitter pane's content and width via the pane's SetContentUrl and SetSize client methods.