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

TreeListView DragQuery Event Handler

1 Answer 48 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
jnh999
Top achievements
Rank 1
jnh999 asked on 09 Dec 2010, 07:29 PM

I have a TreeListView as the drag source.  The nodes user selected will be dragged and dropped to a TreeView on the right.  I need to implement a policy to prevent some nodes from dragging over and I thought I could do this is the DragQuery event handler.  However, the event does not seem to fire at all for TreeListView.  I had no problem doing this with a RadTreeView.  I am wondering whether I didn't coded it right or it is by design.  Here is the declaration of the event handler with my RadTreeListView.

RadDragAndDropManager.AddDragQueryHandler(this.MyTreeListView, OnTreeListViewDragQuery);
  
private void OnTreeListViewDragQuery(object sender, DragDropQueryEventArgs e)
{
}

If this is by design (I doubt that is the case), which event handler should I implement a drag and drop policy?

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 16 Dec 2010, 03:03 PM
Hello jnh999,

Please excuse me for the delayed answer.  Have you tried to handle the event not for the RadTreeListView , but for the items themselves instead? I believe this should help.

Greetings,
Pavel Pavlov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
DragAndDrop
Asked by
jnh999
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or