RadPane..MakeFloatingOnly() and title bar double click

2 posts, 0 answers
  1. Jay
    Jay avatar
    11 posts
    Member since:
    Sep 2010

    Posted 17 Jan 2012 Link to this post

    I’m adding a RadPane to a RadSplitContainer in code.  After adding to the container, I set the pane to MakeFloatingOnly.  The RadPlane is in floating mode inside a ToolWindow, as expected.   However, when I double click on the title bar, it attempts to put the RadPane in a docking mode.  Also right clicking on the title bar provides an option of “Dockable”.

    Two questions:
    How to I keep a pane from being docked on double-click?
    What does MakeFloatingOnly actually do?

  2. Yana
    Yana avatar
    5043 posts

    Posted 20 Jan 2012 Link to this post

    Hello Jay,

    When you make your pane floating using the MakeFloatingOnly() you will not be able to dock it back again using drag and drop. However, this method doesn't change the context menu of the pane, you can still open the menu and check Dockable item - then you will be able to dock the pane.
    I would suggest to check this help article where it is explained how to customize the context menu.

    Also when the title of the pane is double clicked, the pane is maximized. You can disable this behavior by setting ResizeMode of the ToolWindow holding the pane:

    pane.GetParentToolWindow().ResizeMode = ResizeMode.NoResize;

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top