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

Hide the X button

2 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Apr 2008, 02:50 PM
Hi,
How do i hide the X (close) button.
All i want is the expnad button

Thanks
Mark

2 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 02 May 2008, 10:38 AM
anyone ?
0
Accepted
Svetlina Anati
Telerik team
answered on 02 May 2008, 03:30 PM
Hi Mark,

The built-in commands perform their function without any programming on your part. If you are not adding any custom commands to the RadDock control, you can specify which built-in commands using the DefaultCommands property.

DefaultCommands can be set to any of the following values: None, PinUnpin, ExpandCollapse, Close, All. You can build your own combinations, e.g. DefaultCommands="Close, ExpandCollapse". In your particular scenario you can specify only the expanding behavior by setting DefaultCommands = "ExpandCollapse".

You can also set the DefaultCommands property which controls the behavior from server - as shown below:

RadDock1.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.Close |  
                          Telerik.Web.UI.Dock.DefaultCommands.PinUnpin;  

You can find more information about specifying the commands in the RadDock's Titlebar here.

Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or