Root Compass docking fail in Deferred mode

3 posts, 0 answers
  1. MC
    MC avatar
    4 posts
    Member since:
    Nov 2012

    Posted 26 Jul 2013 Link to this post

    Hi,

    I have a RadDocking control, DragDropMode="Deferred".
    Attempts to dock a pane to the root compass fail if the cursor is still within the dragged pane.

    <tt:RadDocking DragDropMode="Deferred" HasDocumentHost="False">
        <tt:RadSplitContainer>
            <tt:RadPaneGroup>
                <tt:RadPane Header="Pane 1" />
            </tt:RadPaneGroup>
        </tt:RadSplitContainer>
        <tt:RadSplitContainer Orientation="Vertical">
            <tt:RadPaneGroup>
                <tt:RadPane Header="Pane 2" />
            </tt:RadPaneGroup>
            <tt:RadPaneGroup tt:ProportionalStackPanel.RelativeSize="100,25">
                <tt:RadPane Header="Pane 3" />
            </tt:RadPaneGroup>
        </tt:RadSplitContainer>
    </tt:RadDocking>

    Steps to replicate:

     1. Attempt to dock Pane 2 to the right of the Root Compass (see img2): Fail
     2. Attempt to dock Pane 3 to the bottom of the Root Compass (hover the mouse such that the compass for Pane 3 appears. see img3): Fail
    3. Attempt to dock Pane 3 to the bottom of the Root Compass (hover the mouse such that the compass for Pane 1 appears): Success

    Any ideas? Thanks!

    Josh
  2. MC
    MC avatar
    4 posts
    Member since:
    Nov 2012

    Posted 30 Jul 2013 Link to this post

    Hi again

    I've done some debugging and have been stepping through the RadDocking code.

    In 
    • RadPaneGroup.OnDragOver
    • RadDocking.OnDragElement(FrameworkElement, Point, RadPaneGroup)

    The code sets the RadPaneGroup under the mouse, into class field RadDocking.groupCompass

    In RadDocking.OnDrop(UIElement, Point), the drop code will only execute if:

    (paneGroup != null && paneGroup != this.groupWithCompass)

    I assume that you're using this method to make sure the pane/group pane is never docked in itself.

    But wouldn't this logic fail for all compass indicators that fall within the RadPaneGroup(-being-dragged)'s bounds?

    Please help. Thanks.
    Josh
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 31 Jul 2013 Link to this post

    Hi,

    We managed to observe the described issue and it seems there is a bug in the Docking control as described below. All of your remarks are correct. We logged the issue in our Public Issue Tracker System where you can track its status.

    We apologize for any inconvenience that this any be causing.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top