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

TreeView DragQueryHandler is not called

1 Answer 41 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
jnh999
Top achievements
Rank 1
jnh999 asked on 11 Nov 2010, 03:14 PM
I have a RadTreeView drag and drop prototype.  It looks like that somehow the DragQueryHandler is not called, i.e. when I put a break point in the handler, the app never hit the break point when debugging.  What could be the problem?  The item seems to drag over fine though.  However, I would like to have the TreeView item and all of its children to drag over so I would need to manipulate the e.Payload property in the DragQueryHandler.  Is there a property setting that makes it automatically bring the selected TreeView item and its children over?

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 11 Nov 2010, 03:44 PM
Hello jnh999,

The drag query event is not raised for tree view since it is handled internally. However, tree view exposes PreviewDragStarted event containing collection of DraggedItems. Adding and remove items from that collection will directly affect the payload.

Let me know if this works for you.

Greetings,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DragAndDrop
Asked by
jnh999
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or