How to hide DocumentContainer close button?

2 posts, 0 answers
  1. So
    So avatar
    1 posts
    Member since:
    Aug 2016

    Posted 11 Aug Link to this post

    I want to hide the close button on the DocumentContainer from RadDock as shown in the following image. I have no found any property for that.

    Help me, plz!

  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 12 Aug Link to this post

    Hello So,

    Thank you for writing us. 

    Each document windows has it own buttons configuration. So you can disable the close button for all document windows using the code snippet below: 
    foreach (DockWindow item in this.radDock1.DockWindows)
    {
        if (item is DocumentWindow)
        {
            item.DocumentButtons = DocumentStripButtons.ActiveWindowList;
        }
    }

    Keep in mind that the DocumentButtons enumeration defines which buttons should be visible (for a DocumentWindow instance). 

    Should you have further questions, I would be glad to help.

    Regards,
    Ralitsa
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top