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

Tabbed documents without the tabs...

1 Answer 41 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Jill-Connie Lorentsen
Top achievements
Rank 1
Jill-Connie Lorentsen asked on 04 Feb 2009, 12:10 PM
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?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 09 Feb 2009, 10:38 AM
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.
Tags
Dock
Asked by
Jill-Connie Lorentsen
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or