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

How to hide DocumentContainer close button?

1 Answer 273 Views
Dock
This is a migrated thread and some comments may be shown as answers.
So
Top achievements
Rank 1
So asked on 11 Aug 2016, 06:48 AM

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!

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 12 Aug 2016, 04:09 PM
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.
Tags
Dock
Asked by
So
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or