Dont allow docking on certain dock controls

2 posts, 1 answers
  1. John
    John avatar
    1 posts
    Member since:
    Jun 2009

    Posted 30 Sep 2010 Link to this post

    Alright I have a Dock Manager with a Docked Tabbed Window and several DockWindow's Docked to the Right Side of the Winform App. Now is there any way I can make it so it WONT allow any of my other DockWindows to be able to dock to that Tabbed document? I dont see any propertys on my inheritted DockWindow/UserDockControl.
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Oct 2010 Link to this post

    Hi John, 

    You can set the allowed dock state property of any of the dock windows in code. For example: 
    dockWindow.AllowedDockState = Telerik.WinControls.UI.Docking.AllowedDockState.All And _
        Not Telerik.WinControls.UI.Docking.AllowedDockState.Floating And _
        Not Telerik.WinControls.UI.Docking.AllowedDockState.TabbedDocument And _
        Not Telerik.WinControls.UI.Docking.AllowedDockState.AutoHide And _
        Not Telerik.WinControls.UI.Docking.AllowedDockState.Hidden

    You may also want to take away the buttons and menus that show some of the dock options too 
    dockWindow.DocumentButtons = Telerik.WinControls.UI.Docking.DocumentStripButtons.None
    dockWindow.ToolCaptionButtons = Telerik.WinControls.UI.Docking.ToolStripCaptionButtons.None

    hope that helps
Back to Top