Insert Document Window

3 posts, 0 answers
  1. Joem
    Joem avatar
    11 posts
    Member since:
    Oct 2012

    Posted 03 Dec 2015 Link to this post

    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. Joem
    Joem avatar
    11 posts
    Member since:
    Oct 2012

    Posted 15 Nov Link to this post

    I am still wondering how will I do this,
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 16 Nov Link to this post

    Hello Joem,

    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.
Back to Top