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

Adding Tabbed Documents into seperate Containers

5 Answers 103 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 03 Mar 2008, 05:01 PM
Hi Folks,

i have a small issue here.

I want to keep a special layout in my dockingmanager, unfortunately the layout trick does not work for me, for my DockPanels do not have public constructors. Therefor i need to arrange 2 tabbed documents in a  vertical position.
Unfortunately the method SetDocument doesn't do the trick for me either, for it tabs them by default.

Any help would be appreciated

regards Alexander

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Mar 2008, 09:20 AM
Hello Alexander,

If I have understood you correctly, your goal is to achieve a layout with two tabbed documents in a vertical position. To do so, you should use DockingManager's Advanced Layout Designer. Simply click the Docking Manager's Smart Tag, and choose Show Advanced Layout Designer from the Action Menu. Then, add two documents, and drag one of them to the right dock of the designer. Save and slose the Advanced Layout Designer.

There is an issue with already existing and arranged tabbed documents. If you Save and Close the Advanced Layout Designer with the arranged documents, then open it again and try to rearrange them, and finally Save and Close it again, your changes will be reflected at design time, but they will not be taken into consideration at run-time. This will be addressed for one of our next releases.

If you have additional questions, do not hesitate to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Alexander
Top achievements
Rank 1
answered on 02 Apr 2008, 09:16 AM
Thank you very much.
0
Ramius
Top achievements
Rank 1
answered on 09 Dec 2008, 09:41 PM
Is it possible to do this in C# ?

regards,

Ramius
0
Nikolay
Telerik team
answered on 16 Dec 2008, 04:17 PM
Hi Ramius,

In order to add tabbed documents into separate containers through code, please refer to the following code below. You will notice that when setting the second DocumentPane, we pass the first DocumentPane as a host:
DocumentPane panel1 = new DocumentPane();  
panel1.Text = "Document1";  
this.dockingManager1.SetDock(panel1, DockPosition.Left);   
 
DocumentPane panel2 = new DocumentPane();  
panel2.Text = "Document2";  
this.dockingManager1.SetDock(panel2, panel1, DockPosition.Right); 

I hope this helps. If you have additional questions, feel free to contact me.

Sincerely yours,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ramius
Top achievements
Rank 1
answered on 17 Dec 2008, 09:59 AM
It works fine.

Thank you for your help.

Greetings,

Ramius
Tags
Dock
Asked by
Alexander
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Alexander
Top achievements
Rank 1
Ramius
Top achievements
Rank 1
Share this question
or