TreeListView DragQuery Event Handler

2 posts, 0 answers
  1. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 09 Dec 2010 Link to this post

    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?

  2. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 16 Dec 2010 Link to this post

    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.

    Pavel Pavlov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft R3 2016 release webinar banner
Back to Top