I don't want the close (X) thing to appear on my raddock. Is there any way to do that by code. Actually I am adding the controls to my page dynamically. I am using VS2008 and "RadControls for ASPNET AJAX Q2 2008" version.
Thanks
Vinay
2 Answers, 1 is accepted
0
Sophy
Telerik team
answered on 07 Aug 2008, 04:11 PM
Hello Vinay,
By default if no commands are specified in the RadDock ExpandCollapse and Close commands are added. If you want to remove the close command and leave only the expand/collapse command you can use the DefaultCommands property of the RadDock and set it in the following way: dock.DefaultCommands = DefaultCommands.ExpandCollapse; You could also remove all commands from the dock control if you set the dock's DefaultCommands property to DefaultCommands.None. I suggest you take a look at the Commands online example for more information about dock's commands. Let us know if you need further assistance.
Kind regards,
Sophy
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.