To toggle the split pane in any event at dynamically.
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:
This page will automatically be redirected to the sign-in page in 10 seconds.