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

RadPane..MakeFloatingOnly() and title bar double click

1 Answer 76 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jay
Top achievements
Rank 1
Jay asked on 17 Jan 2012, 04:48 PM

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?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 20 Jan 2012, 12:00 PM
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,
Yana
the Telerik team

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

Tags
Docking
Asked by
Jay
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or