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

How to force docking, prevent floating pane

5 Answers 67 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Henri
Top achievements
Rank 1
Henri asked on 04 Jul 2011, 03:32 PM
Hi,

How can I force the pane to be docked?
So when the user drags the pane (it's floating), and releases the mouse,
I want the pane to fly back in its original docked position when it would cause the pane to become undocked.
(When mouse is released and docking hint is shown,then its the normal behaviour, the pane docks)
Is this possible?

Best regards,
Henri

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 07 Jul 2011, 07:40 AM
Hi Henri,

You can set the CanFloat property of the Pane to False. In that way the user won't be able to drag the pane at all. Unfortunately, the scenario with the flying back to its original place is not possible.

Hope this information helps.

All the best,
Konstantina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Henri
Top achievements
Rank 1
answered on 07 Jul 2011, 12:09 PM
Hi Konstantina,

I am aware of the CanFloat property, but then the user cannot drag the pane to a new docking position.
Is there no way to programmatically dock the pane when  the dragging action is ended and the pane has become a floating pane?
(and re-dock it to its original docked position)
Thanks in advance for your assistance,
Henri
0
Konstantina
Telerik team
answered on 18 Jul 2011, 08:34 AM
Hello Henri,

As mentioned earlier, this cannot be achieved, as there is no way to know which was the original docked position as when the pane is dragged the group and the SplitContainers are created dynamically. You cannot find the real source SplitContainer as when dragged they are already moved out in a new one.

Greetings,
Konstantina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
BENOIT CHEVALIER
Top achievements
Rank 1
answered on 07 Feb 2012, 05:24 PM
Hi,
Is this still not possible ?

Thx in advance
0
Konstantina
Telerik team
answered on 10 Feb 2012, 01:41 PM
Hi Benoit,

I am afraid this is still not possible. This issue is added in PITS - you can view it here. You can vote for it and track its status, when it is going to be implemented.

Greetings,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Docking
Asked by
Henri
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Henri
Top achievements
Rank 1
BENOIT CHEVALIER
Top achievements
Rank 1
Share this question
or