Keep a docked window (tab) in the same place

4 posts, 0 answers
  1. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 15 May 2015 Link to this post

    Hi,

    I have a certain docked window that is always opened when my application is started (and cannot be closed by the user) and I'd like to always keep this window  at the left-most tab position in the document container. Any new documents should open to the right of this document. How would I do this?

    Thanks,

    -Lou

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 18 May 2015 Link to this post

    Hi Lou,

    Thank you for writing.

    You can re-dock the main window after another window is added:
    DocumentWindow mainWnd = new DocumentWindow();
    void button_Click(object sender, EventArgs e)
    {
        DocumentWindow newWindow = new DocumentWindow();
     
        radDock1.DockWindow(newWindow,  DockPosition.Fill);
        radDock1.DockWindow(mainWnd, DockPosition.Fill);
    }

    We also have a feature request for pinning DocumentWindows. Feel free to cast your vote for it by clicking the Like button: http://feedback.telerik.com/Project/154/Feedback/Details/111931-add-raddock-add-support-for-pinning-a-documentwindow.

    Let me know if I can assist you further.
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 18 May 2015 in reply to Dimitar Link to this post

    Thanks Dimitar, I was able to use that technique to do what I wanted.

    I added my vote for the pinning feature that you mentioned.

     -Lou

  5. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 19 May 2015 Link to this post

    Hello Lou,

    I am glad that you have found a solution for your case. Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top