How to hide DocumentContainer close button?

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

    Posted 11 Aug 2016 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
    Ralitsa avatar
    192 posts

    Posted 12 Aug 2016 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.

    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