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.

Prgrammatically docking panels

Thread ID:

Created:

Updated:

Platform:

Replies:

75964 Aug 18,2008 09:25 AM Aug 20,2008 12:08 AM Windows Forms 3
loading
Tags: GridControl
Andy Chan
Asked On August 18, 2008 09:25 AM

Hello,

I am using Syncfusion 6.1.0.34 and I'm wordering if there is a way to programmatically dock 2 panels to the left-hand side of the form I'm in. I'd like to avoid using auto-generated code where possible. I've attached a picture of what it "should" look like. Thanks for your help!



panel_docking_882fdfb3.zip

Administrator [Syncfusion]
Replied On August 19, 2008 07:22 AM

Hi Andy,

Thank you for your interest in Syncfusion Products.

Docked control can be docked to any of the four sides of the container control. i.e., to Left, Right, Top and Bottom. DockingManager lets you specify the type of docking and the bounds of the docked control using the DockControl method.

Please refer the below code.

[C#]
this.dockingManager1.DockControl(this.panel1, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Left,100);
this.dockingManager1.DockControl(this.panel2, panel1 , Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom,200);

Please refer the tutorial link for more detail.
http://www2.syncfusion.com/ug_63/toolswin/DockingStyle.html

Please refer the simple sample for your reference.
http://websamples.syncfusion.com/samples/Tools.Windows/F75964/main.htm

Please let me know if any concerns.

Regards,
Hema



Andy Chan
Replied On August 19, 2008 11:32 AM

Thank you very much, this is exactly what I was looking for!


Administrator [Syncfusion]
Replied On August 20, 2008 12:08 AM

Hi Andy,

Thank you for the update.

Regards,
Hema


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;