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

Creating horizontal tab group programmatically ?

1 Answer 115 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 03 Dec 2011, 05:03 PM
Hello,

I would like that when I add some specific MDI child to the RadDock programatically it gets displayed int a new horizontal tab group instead of a new tab. Is this possible ? And how ?


Thank you.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 07 Dec 2011, 01:26 PM
Hi Thomas,

To create a new horizontal tab group with new document, you must add a new document instance to Bottom. Here is a simple example. The 'Document2' is added to new horizontal tab group:

DocumentWindow dw = new DocumentWindow();
dw.Text = "Document1";
this.radDock1.AddDocument(dw);
 
DocumentWindow dw2 = new DocumentWindow();
dw.Text = "Document2";
this.radDock1.AddDocument(dw2, DockPosition.Bottom);

I hope this helps. Let me know if you need further assistance.

Regards,
Julian Benkov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Tags
Dock
Asked by
Thomas
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or