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

DropQuery and DragQuery events not fired

1 Answer 106 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Lorenzo
Top achievements
Rank 1
Lorenzo asked on 22 Sep 2011, 12:00 PM
Good morning
As the title say, RadDragAndDropManager dont fire the DropQuery and DragQuery events.
in XAML:

                dragDrop:RadDragAndDropManager.DropQuery="rTreeListView_DropQuery"
                dragDrop:RadDragAndDropManager.DropInfo="rTreeListView_DropInfo"
                dragDrop:RadDragAndDropManager.DragQuery="rTreeListView_DragQuery"
                dragDrop:RadDragAndDropManager.DragInfo="rTreeListView_DragInfo" 
 
and, in code behind, there is the implementation of events.
Setting a breakpoint into the events, it's never hit.
Need the DropQuery event because, in my application, there are rules that allow or not 
the drop of an element under another element;
and (as i read from help) i would like to set the QueryResult to false, cancelling drop.
The second question is:
I would like to show an icon (like denial of access)  when the DragCueItem is on an item 
on which drop operation is not allowed.
 



1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 26 Sep 2011, 03:46 PM
Hello Lorenzo,

I have tested how the Drag and Drop events are fired with the Q2 SP 1 version of the RadControls.

When I define them in XAML, like you have shown, they are fired fine. Along with them I set those 2 properties as well:

dragDrop:RadDragAndDropManager.AllowDrop="True"
dragDrop:RadDragAndDropManager.AllowDrag="True"

Have you defined those two properties as well?

Regarding your 2-nd question, yes, you could use an Image for the DragCue. For more information please refer to this forum post.

Regards,
Didie
the Telerik team

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

Tags
DragAndDrop
Asked by
Lorenzo
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or