Tabbed documents without the tabs...

2 posts, 0 answers
  1. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 04 Feb 2009 Link to this post

    I have an application with a DockingManager, AutoDetectMdiChildForms=true, and a normal windows form as MdiContainer.

    When I add children forms I get tabs as expected, and a drop down menu where I can choose which tab to activate.

    I have two questions:

    1. Is it possible NOT to have the tabs, but keep the drop down menu? If my application is run on a screen with low resolution only 1-2 of the tabs are visible, so they are pointless and only generate noise.
    2. I would like to have a Back and a Forward button to navigate through the documents, but I haven't figured out how to do this. Is it possible?


  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 09 Feb 2009 Link to this post

    Hi Jill-Connie Lorentsen,

    Sorry for the delay of my answer.

    Currently this is not a supported RadDock feature. We may include this tabbed document extensions and behavior in our future version of RadDock.

    You can access and use TabStripElement directly from the DocumentPresenterControl in this scenario, but the result of this operation is unexpected. For instance:

    private void button2_Click(object sender, EventArgs e) 
        if (this.dockingManager1.Documents.Count > 0) 
            DocumentPresenterControl ctrl = this.dockingManager1.Documents[0].DefaultPresenter as DocumentPresenterControl; 
            if (ctrl != null
                for (int i = 0; i < ctrl.DocumentPresenterElement.TabStripElement.Items.Count; i++) 
                    ctrl.DocumentPresenterElement.TabStripElement.Items[i].Visibility = ElementVisibility.Collapsed; 
                ctrl.DocumentPresenterElement.TabStripElement.TabScrollStyle = TabStripScrollStyle.ScrollByItem; 
                ctrl.DocumentPresenterElement.TabStripElement.TabScrollButtonsPosition = TabScrollButtonsPosition.RightBottom; 

    Do not hesitate to write me back if you have further questions.

    Best wishes,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top