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.

Steps for docking

Thread ID:

Created:

Updated:

Platform:

Replies:

68671 Sep 26,2007 09:32 PM Oct 4,2007 10:16 AM Windows Forms 3
loading
Tags: Tools
David Elliott
Asked On September 26, 2007 09:32 PM

I am just starting using the SyncFusion controls and am looking for a little help with docking.

I am trying to create a screen that looks like the following.

+----------------------------------+
| || |
| || |
| Fixed || |
| Tree || |
| || |
| || |
| || |
+==========|| |
| || |
| Dock || |
| GroupBar || |
| || |
| || |
| || |
+----------------------------------+

The main form has a splitter seperating it into a left and right half.

The left half has a TreeView that is Always Docked to the top and can't move. The bottom has a GroupBar that can only be docked to the bottom. The GroupBar could also dock to the form (top/bottom/right) or could float.

What are the general steps required to set this up.

1) Create form
2) Drop splitter on
3) Drop DockingManager
4) Drop TreeView on
5) Drop GroupBar on
6) ???
7) ???
8) ???

Thanks,
Dave

Golda Rebecal [Syncfusion]
Replied On September 27, 2007 06:43 AM

Hi Dave,

You can use the DockAllow and DragAllow events to achieve your requirement. Also you can not dock controls inside a Splitter since DockingManager allows only the Form or UserControl as host control.

Please refer to the attached sample that shows how you can achieve this using Form as a host control.
http://websamples.syncfusion.com/samples/Tools.Windows/F68671/main.htm

Kindly let me know if this helps you.

We appreciate your interest in Syncfusion products.

Best regards,
Golda

David Elliott
Replied On October 1, 2007 08:13 AM

The sample provided won't compile due to a missing user control. If I understand you correctly, I would have to create a user control and put the treeview and groupbar on the user control before I would be able to dock the controls.

Would I have to add a dockmanager to the usercontrol? Would the groupbar be able to attach to the right side of the form then or just the usercontrol?

Thanks,
Dave

>Hi Dave,

You can use the DockAllow and DragAllow events to achieve your requirement. Also you can not dock controls inside a Splitter since DockingManager allows only the Form or UserControl as host control.

Please refer to the attached sample that shows how you can achieve this using Form as a host control.
http://websamples.syncfusion.com/samples/Tools.Windows/F68671/main.htm

Kindly let me know if this helps you.

We appreciate your interest in Syncfusion products.

Best regards,
Golda

Golda Rebecal [Syncfusion]
Replied On October 4, 2007 10:16 AM

Hi Dave,

Sorry for the inconvenience caused.

In the sample that I provided earlier, usercontrol is not used. DockingManager is added to Form and TreeView and GroupBar are docked to the left side of the Form.

Herewith I have attached the sample that works fine:
http://websamples.syncfusion.com/samples/Tools.Windows/F68671_1/main.htm

Kindly let me know if this helps you.

Best regards,
Golda

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.

;