Steps for docking
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
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
SIGN IN To post a reply.
3 Replies
GR
Golda Rebecal
Syncfusion Team
September 27, 2007 10:43 AM UTC
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
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
DE
David Elliott
October 1, 2007 12:13 PM UTC
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
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
GR
Golda Rebecal
Syncfusion Team
October 4, 2007 02:16 PM UTC
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
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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
DE David Elliott
- Sep 27, 2007 01:32 AM UTC
- Oct 4, 2007 02:16 PM UTC