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

RadDock Tabs

5 Answers 166 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rui Silva
Top achievements
Rank 1
Rui Silva asked on 23 Feb 2011, 11:00 AM
Good morning, i am having an odd problem when adding documentwindows to my radDock.
When i add a new tab, the tab allways open in the first position(left) of the first tab of my raddock, i have tried to change the position from "InFront" to "OnBack" but nothing changes. I use the radDock.AddDocument(documentWindow) method.

I want to know how i can make my tabs to open in the last position of the tabcontainer in my raddock instead of the first position.

Hope you can help me, best regards
Rui Silva

5 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 23 Feb 2011, 11:31 AM
Hello,

The following code will insert the second document to the right of the first document.

this.radDock1.DocumentManager.DocumentInsertOrder = DockWindowInsertOrder.ToBack;
DocumentWindow documentTop = new DocumentWindow();
documentTop.Text = "New Document 1";
this.radDock1.AddDocument(documentTop);
DocumentWindow documentTop2 = new DocumentWindow();
documentTop2.Text = "New Document 2";
this.radDock1.AddDocument(documentTop2);

hope that helps
Richard
0
Rui Silva
Top achievements
Rank 1
answered on 23 Feb 2011, 01:10 PM
Richard thanks for the quick answer, but as i described in the first post i have already tried that but it keeps inserting the document in the left of the first document...
Is there anything else that i can be doing wrong?
Best regards,
Rui SIlva
0
Richard Slade
Top achievements
Rank 2
answered on 23 Feb 2011, 01:13 PM
Hello,

If you haven't, please can yuo try the code provided in a new project with just a RadDock on a form. I found under the latest version of the RadControls (2010 Q3 SP1) this worked as expected.
Let me know how you get on
Thanks
Richard
0
Rui Silva
Top achievements
Rank 1
answered on 23 Feb 2011, 01:34 PM
Thanks very much Richard and i apologize, as that code worked in a new project i realized i was messing with other setting wich was resetting the option of opening in back.

Thanks for your help!
Best regards, Rui SIlva
0
Richard Slade
Top achievements
Rank 2
answered on 23 Feb 2011, 01:41 PM
No problem. Glad that it helped you.
Regards,
Richard
Tags
Dock
Asked by
Rui Silva
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Rui Silva
Top achievements
Rank 1
Share this question
or