DragAndDrop with Treeview and ListBox on ChildWindow does not work?

3 posts, 1 answers
  1. Michele Denison
    Michele Denison avatar
    8 posts
    Member since:
    Oct 2009

    Posted 26 Mar 2010 Link to this post

    Hi,

    I have a childwindow that contain a RadTreeView and a listbox. I would like to be able to drag-and-drop items between the two elements.
    Am able to drag from the listbox and drop in the treeview by adding the childwindow to the ParticipatingVisualRoots  in the OnDragQuery() event handler for the listbox. But dragging from the RadTreeView does not work.
    What seams to be the problem? Maybe am missing something here.

    HELP!!!
    Thanks.
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 29 Mar 2010 Link to this post

    Hello Michele Denison,

    The RadTreeView handles internally the OnDraqQuery() event. Therefore, you need to attach the handler as shown below:

    myTreeView.AddHandler(RadDragAndDropManager.DragQueryEvent,
                                                  new EventHandler<DragDropQueryEventArgs>(OnDragQuery),true);


    Is this the way you're attaching it? If it is, can you please send me a sample of your code to investigate the issue further. If not, can you please try this and let me know how it goes.

    Please let me if you need more info.

    Kind regards,
    Tina Stancheva
    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.
  3. DevCraft banner
  4. Michele Denison
    Michele Denison avatar
    8 posts
    Member since:
    Oct 2009

    Posted 29 Mar 2010 Link to this post

    THANKS A LOT Tina.
    You made my day, now i can go to sleep.

    cheers.
Back to Top