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

Insert Document Window

2 Answers 194 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Joem
Top achievements
Rank 2
Joem asked on 04 Dec 2015, 03:18 AM

Hi,

Is there anyone who could tell me a way to insert a document window?

I am using radDock.DocumentManager.DocumentInsertOrder = DockWindowInsertOrder.ToBack;

If I added 3 DocWindows, it will be placed as Doc1 - Doc2 - Doc3

 

I wanted to place Doc3 between the other two if Doc1 is the ActiveWindow.

 

I am looking to insert an item in radDock.DockWindows but it has no Insert property.

RadDock.AddDocument always place it last or first depending on InsertOrder.

 

Am I missing a Property to allow such case?

 

2 Answers, 1 is accepted

Sort by
0
Joem
Top achievements
Rank 2
answered on 16 Nov 2016, 03:18 AM
I am still wondering how will I do this,
0
Dimitar
Telerik team
answered on 16 Nov 2016, 10:23 AM
Hello ,

Thank you for writing. 

You can use the SetChildIndex method to reorder the windows:
private void radButton1_Click(object sender, EventArgs e)
{
    var dockWindow = radDock1.DockWindows.DocumentWindows[2];
    DockTabStrip strip = dockWindow.DockTabStrip;
    if (strip != null)
    {
        strip.Controls.SetChildIndex(dockWindow, 1);
    }
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
Dock
Asked by
Joem
Top achievements
Rank 2
Answers by
Joem
Top achievements
Rank 2
Dimitar
Telerik team
Share this question
or