How to force docking, prevent floating pane

6 posts, 0 answers
  1. Henri
    Henri avatar
    74 posts
    Member since:
    Aug 2008

    Posted 04 Jul 2011 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Henri
    Henri avatar
    74 posts
    Member since:
    Aug 2008

    Posted 07 Jul 2011 Link to this post

    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
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Jul 2011 Link to this post

    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!

  6. BENOIT CHEVALIER
    BENOIT CHEVALIER avatar
    22 posts
    Member since:
    Nov 2009

    Posted 07 Feb 2012 Link to this post

    Hi,
    Is this still not possible ?

    Thx in advance
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 10 Feb 2012 Link to this post

    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 >>
Back to Top
DevCraft banner