Hiding the Close Dock command button

2 posts, 0 answers
  1. Kirby Haltom
    Kirby Haltom avatar
    18 posts
    Member since:
    Jul 2007

    Posted 26 Dec 2007 Link to this post

    I have an app that dynamically creates docks, some of which are "required" and cannot be closed.

    I have been reading the forums and documentation, and I can't find a way to hide the close button on a rad doc. If I add a command to the dock.Commands collection, it will only show the added command, but as soon as I clear all the commands, the close option appears.

    How can I remove the close command button?

    Thanks for any help,
    Kirby
  2. Kirby Haltom
    Kirby Haltom avatar
    18 posts
    Member since:
    Jul 2007

    Posted 26 Dec 2007 Link to this post

    Ah, I see. You use the DefaultCommands property.

    MyDock.DefaultCommands = Telerik.Web.UI.Dock.

    DefaultCommands.None;





Back to Top