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

How to get ride of Close (X) in the tilte bar.

2 Answers 70 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Vinay Tho
Top achievements
Rank 1
Vinay Tho asked on 07 Aug 2008, 03:26 PM
Hi,

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

Sort by
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.
0
Accepted
Vinay Tho
Top achievements
Rank 1
answered on 07 Aug 2008, 10:02 PM
Hi Sophy,

Thanks a lot for the quick reply.
I used DefaultCommands.None. I got what I needed.

Thanks and regards ,
Vinay
Tags
Dock
Asked by
Vinay Tho
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Vinay Tho
Top achievements
Rank 1
Share this question
or