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

Disable the close button?

3 Answers 350 Views
Dock
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 12 Oct 2009, 06:02 PM
What is the easiest way to disable or hide the close button on a RadDock?

Thank you!

3 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 14 Oct 2009, 03:55 PM
Hello James,

Use the DefaultCommands property of the RadDock to choose which dock commands will be displayed (enabled).

Another way of doing this is specifying the commands in the <Commands> tag in the RadDock control. The following code displays only the PinUnpin command of the RadDock:

<telerik:RadDock ID="RadDock1" runat="server">
    <Commands>
        <telerik:DockPinUnpinCommand />
    </Commands>
</telerik:RadDock>
 


All the best,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 14 Oct 2009, 04:01 PM
Perfect thank you!

I was able to only show the collapse button by adding this in my RadDock tag:

<Commands> 
    <telerik:DockExpandCollapseCommand /> 
</Commands> 

0
Madhav Joshi
Top achievements
Rank 2
answered on 04 Nov 2012, 03:59 PM
Thanks helped lots was very much in Need :)
Tags
Dock
Asked by
James
Top achievements
Rank 1
Answers by
Pero
Telerik team
James
Top achievements
Rank 1
Madhav Joshi
Top achievements
Rank 2
Share this question
or