Creating horizontal tab group programmatically ?

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    34 posts
    Member since:
    Nov 2011

    Posted 03 Dec 2011 Link to this post


    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.
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 07 Dec 2011 Link to this post

    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";
    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.

    Julian Benkov
    the Telerik team

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

Back to Top