Adding Tabbed Documents into seperate Containers

6 posts, 0 answers
  1. Alexander
    Alexander avatar
    5 posts
    Member since:
    Mar 2008

    Posted 03 Mar 2008 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 06 Mar 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Alexander
    Alexander avatar
    5 posts
    Member since:
    Mar 2008

    Posted 02 Apr 2008 Link to this post

    Thank you very much.
  5. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 09 Dec 2008 Link to this post

    Is it possible to do this in C# ?

    regards,

    Ramius
  6. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 16 Dec 2008 Link to this post

    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.
  7. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 17 Dec 2008 Link to this post

    It works fine.

    Thank you for your help.

    Greetings,

    Ramius
Back to Top
UI for WinForms is Visual Studio 2017 Ready