We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to toggle the splitter pane expand and collapse action?

 

Description:

To toggle the split pane in any event at dynamically.

Solution:

We can achieve this requirement using “collapse” and “expand” methods of splitter control. These public methods can be called from any events (for example button click event) to expand / collapse the pane of splitter by passing the index value of the required pane. On dynamic handler check for the expand/collapse state of the pane and toggle them using the methods.

  1. If split pane (for example) has “collapsed” class, the pane is in collapsed state. Then, we can expand the pane by using expand method with passing the paneIndex argument.
  2. If it has “expanded” class, the pane is in collapsed state. Then, we can collapse the pane by using collapse method with passing the paneIndex argument.   

Refer to the following code example:

 

Refer to the following sample:

 

http://jsplayground.syncfusion.com/3zzrh04c

 

Refer to this API documentation:

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8353 01/30/2018 01/30/2018 JavaScript ejSplitter
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon