TreeView DragQueryHandler is not called

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

    Posted 11 Nov 2010 Link to this post

    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?
  2. Tsvyatko
    Tsvyatko avatar
    863 posts

    Posted 11 Nov 2010 Link to this post

    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.

    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
Back to Top