This is a migrated thread and some comments may be shown as answers.

Some docking issues

1 Answer 37 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Yoni
Top achievements
Rank 1
Yoni asked on 20 Nov 2014, 05:48 PM
Hello,

1) How can I make a new tab to be added to the right side (instead of to the left side as it is by defualt)
2) How can I control the size & the location of a tool window when adding it to rad dock via code?
3) How can I show again a tool window that closed by the user (using the x button), also is there any event when the window is hide/shown

Thank you!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Nov 2014, 10:45 AM
Hello Yoni,

Thank you for writing.

Straight to your questions:

1. Please refer to the DocumentInsertOrder section in the following article: http://www.telerik.com/help/winforms/dock-architecture-and-features-document-manager.html

2. To control the location of the added ToolWindow you can use the DockWindow method of RadDock: http://www.telerik.com/help/winforms/dock-object-model-creating-toolwindow-and-documentwindow-at-runtime.html. As to the size, you should use the SizeMode property and control it as per your needs: http://www.telerik.com/help/winforms/dock-object-model-example-building-an-advanced-layout-at-runtime.html

3. You can use the CloseAction property of a window, and set it to Hide. Then you can show a previously hidden window: http://www.telerik.com/help/winforms/dock-object-model-toolwindow-and-documentwindow-properties-at-runtime.html

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Dock
Asked by
Yoni
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or