Disable the close button?

4 posts, 1 answers
  1. James
    James avatar
    53 posts
    Member since:
    Jun 2009

    Posted 12 Oct 2009 Link to this post

    What is the easiest way to disable or hide the close button on a RadDock?


    Thank you!

  2. Answer
    Pero
    Admin
    Pero avatar
    1156 posts
    Member since:
    Sep 2012

    Posted 14 Oct 2009 Link to this post

    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.

  3. James
    James avatar
    53 posts
    Member since:
    Jun 2009

    Posted 14 Oct 2009 Link to this post

    Perfect thank you!


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

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

  4. Madhav Joshi
    Madhav Joshi avatar
    19 posts
    Member since:
    Oct 2012

    Posted 04 Nov 2012 Link to this post

    Thanks helped lots was very much in Need :)

Back to Top