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

Sizing of docked control on load is not working

Hi,
I am trying to set the size of a docked control on load of a form using SetControlSize(Control, Size) but this method is working if i call thru some context menu in my application after loading.

i also found that to auto hide the control on load we have to use SetAutoHideOnLoad(Control, bool) rather than SetAutoHideMode(Control, bool). But there is now such method or setting the size on load.

Also i have attached an test application which explain this issue practically.
In this sample i have the below code in OnLoad
dockMgr.SetControlSize(leftPanel, new Size(500, 450));
but this is not taking the given size

How do i set the size of a docked control on Load of an applicaton.

Thanks and Regards,
Ranjith



SyncDocking_d37ee215.zip

3 Replies

AD Administrator Syncfusion Team June 25, 2008 12:30 PM UTC

Hi Ranjith,

Thank you for using Syncfusion products.

To set the size of docked control on load of an application

This can be achieved by setting size of docked control in dockingManager1_NewDockStateEndLoad event. Please refer the below code snippet and let me know if this helps you.

[C#]

private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
this.dockingManager1.SetControlSize(this.panel1, new Size(300, 300));

}

Regards,
Jaya




RK Ranjith Kumar Srinivasan June 26, 2008 02:32 AM UTC

Hi Jaya,
Thanks for your support, Now its working fine.

Thanks and Regards,
Ranjith


>Hi Ranjith,

Thank you for using Syncfusion products.

To set the size of docked control on load of an application

This can be achieved by setting size of docked control in dockingManager1_NewDockStateEndLoad event. Please refer the below code snippet and let me know if this helps you.

[C#]

private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
this.dockingManager1.SetControlSize(this.panel1, new Size(300, 300));

}

Regards,
Jaya






AD Administrator Syncfusion Team July 1, 2008 04:29 AM UTC

Hi Ranjith,

Thanks for the update. Please let me know if you have any further issues.

Regards,
Jaya


Loader.
Live Chat Icon For mobile
Up arrow icon