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

Root Compass docking fail in Deferred mode

2 Answers 107 Views
Docking
This is a migrated thread and some comments may be shown as answers.
MC
Top achievements
Rank 1
MC asked on 26 Jul 2013, 09:34 AM
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 Answers, 1 is accepted

Sort by
0
MC
Top achievements
Rank 1
answered on 30 Jul 2013, 08:57 AM
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
0
Vladi
Telerik team
answered on 31 Jul 2013, 07:45 AM
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 >>
Tags
Docking
Asked by
MC
Top achievements
Rank 1
Answers by
MC
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or