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

Drag drop between two treeviews

4 Answers 160 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Prash
Top achievements
Rank 1
Prash asked on 01 Apr 2009, 01:40 PM
Hello,

I am looking for the following functionality
I have two treeviews which are bound to two different collections. I want that when I drag the item from one treeview to another it (the item) should move to the other treeview in the hierarchy level I drop it to, with the drag effect .
Can this be achieved ?
Any code sample will be helpful.


4 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 04 Apr 2009, 10:53 AM
Hi Prash,

Currently the WPF RadTreeView does not support built-in corss-control DragDrop. We are planning to include out Dragdrop framework in WPF to simplify this, but in the meantime you can use the WPF default DragDrop.

It revolves around adding handlers for the events of the DragDrop class. There are 12 events that handle starting, continuing and finishing a DragDrop operation.

You can read more about it in these MSDN articles:

http://msdn.microsoft.com/en-us/library/ms742859.aspx

http://msdn.microsoft.com/en-us/library/ms771293.aspx

Kind regards,
Miroslav
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Ryan Black
Top achievements
Rank 1
answered on 29 Sep 2010, 03:16 PM
Has there been any update to this?  I need to be able to drag/drop between 2 Treeviews.

Ryan
0
Tina Stancheva
Telerik team
answered on 29 Sep 2010, 03:30 PM
Hi Ryan Black,

You can check out our TreeView DragAndDrop demo in WPF here. Give it a try and let us know if you need more info.

Greetings,
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
Ryan Black
Top achievements
Rank 1
answered on 29 Sep 2010, 03:40 PM
Thats perfect!  Thanks.
Tags
TreeView
Asked by
Prash
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Ryan Black
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or