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

Control docking panel

Hello.
I add a panel and dockingMgr in the form1.
I want the panel to hide left side, and
some event is raise, the panel is showed.
So how can I control docking panel without caption buttons.
Please, give me an advice.
Thank you.




1 Reply

HK Hemaladha K Syncfusion Team November 21, 2008 06:14 AM UTC

Hi Chin,

Thank you for your interest in Syncfusion Products.

To display the panel to AutoHide mode when the form is loaded we need to call SetAutoHideMode() method in NewDockStateEndLoad event. Please refer to the below code snippets given:

[C#]


private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
this.dockingManager1.SetAutoHideMode(this.panel1, true);
}

private void button1_Click(object sender, EventArgs e)
{
if (this.dockingManager1.GetAutoHideMode(this.panel1))
this.dockingManager1.SetAutoHideMode(this.panel1, false);
else
this.dockingManager1.SetAutoHideMode(this.panel1, true);
}



Please refer to the below sample that demonstrates the same.
http://websamples.syncfusion.com/samples/F77889/main.htm

Please let me know if this helps you.

Regards,
Hema


Loader.
Live Chat Icon For mobile
Up arrow icon