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

DragAndDrop with Treeview and ListBox on ChildWindow does not work?

2 Answers 64 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Michele Denison
Top achievements
Rank 1
Michele Denison asked on 26 Mar 2010, 09:11 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 29 Mar 2010, 12:29 PM
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.
0
Michele Denison
Top achievements
Rank 1
answered on 29 Mar 2010, 12:53 PM
THANKS A LOT Tina.
You made my day, now i can go to sleep.

cheers.
Tags
DragAndDrop
Asked by
Michele Denison
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Michele Denison
Top achievements
Rank 1
Share this question
or