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. Image for the cookie policy date
close icon

Layoutpanel collapse

How can I collapse/expand layout panel with JavaScript On clientSide?

1 Reply

MW Melba Winshia Syncfusion Team July 10, 2009 12:12 PM UTC

Hi Forket,

Thank you for your interest in Syncfusion Products.

You can use below code to collapse/expand layout panel with JavaScript On clientSide:

[Javascript]

function ExpandFun() {

//_sfRootPanel is Client Object Id
_sfRootPanel.expand();


}

function CollpaseFun() {

//_sfRootPanel is Client Object Id
_sfRootPanel.collapse();

}

Please refer the sample in the below link which illustrates the above:

http://files.syncfusion.com/samples/Tools.Web/7.2.0.37/86619_Layout1/main.htm

Please try this and let me know if this helps.

Thanks,
Melba

Loader.
Live Chat Icon For mobile
Up arrow icon