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

Drag and drop of nodes betweeen two RadTreeView in WPF

3 Answers 212 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Balaram Barange
Top achievements
Rank 1
Balaram Barange asked on 08 May 2009, 01:55 PM
Hi

     I am developing an application in which I require drag drop between two tree. But this is not directly supported in RadTreeView control,so can you suggest me how I can implement it using your RadTreeView control. Please provide me sample code if possible.
I need to implement it in urgent,so please respond it as soon as possible

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 11 May 2009, 06:34 AM
Hello Balaram,

To allow drag and drop operation between nodes in RadTreeView for WPF, you need to set the IsDragDropEnabled control property of to 'true'. Once enabled, dragging behavior by default allows Items to be dropped on other items and between the items. For additional information, please review the documentation under Controls -> RadTreeView -> Programming -> Drag and Drop. You can also play with the live demos available both upon installation locally as well as live here.

Should you have further questions, do not hesitate to write back.

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Balaram Barange
Top achievements
Rank 1
answered on 11 May 2009, 09:22 AM
Hi,
    Konstantin Petkov
I have already implemented "IsDragDropEnabled control property of to 'true' ", But this implements Drag and Drop inbetween the nodes of the Same Tree.But in my application There are two TreeView(say Tree1 and Tree2)  and I require to Drag a node form one tree(say Tree1) and to drop it on another node of the other tree(say Tree2). So please suggest me how I can implement it using your RadTreeView control.
                                  If possible please provide me sample code.


Thanks in advance
0
Konstantin Petkov
Telerik team
answered on 11 May 2009, 09:40 AM
Hello Balaram,

Indeed, the setting allows you to drag/drop nodes in the same tree. As to drag and drop operation between separate controls please review this thread for reference:

http://www.telerik.com/community/forums/wpf/treeview/drag-drop-between-two-treeviews.aspx

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Balaram Barange
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Balaram Barange
Top achievements
Rank 1
Share this question
or