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

Hiding the Close Dock command button

1 Answer 108 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kirby Haltom
Top achievements
Rank 1
Kirby Haltom asked on 26 Dec 2007, 09:39 PM
I have an app that dynamically creates docks, some of which are "required" and cannot be closed.

I have been reading the forums and documentation, and I can't find a way to hide the close button on a rad doc. If I add a command to the dock.Commands collection, it will only show the added command, but as soon as I clear all the commands, the close option appears.

How can I remove the close command button?

Thanks for any help,
Kirby

1 Answer, 1 is accepted

Sort by
0
Kirby Haltom
Top achievements
Rank 1
answered on 26 Dec 2007, 10:02 PM
Ah, I see. You use the DefaultCommands property.

MyDock.DefaultCommands = Telerik.Web.UI.Dock.

DefaultCommands.None;





Tags
Dock
Asked by
Kirby Haltom
Top achievements
Rank 1
Answers by
Kirby Haltom
Top achievements
Rank 1
Share this question
or