Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

Client-Side Functionality

Collapse pane

This demo illustrates how to manipulate the DevExpress MVC Splitter programmatically on the client using our extended client-side functionality. An individual client control object can be referenced directly by its Name.

In this demo, the splitter's visibility 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.

Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxNavigationAndLayoutDemos