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

Drag Drop with Datasource

1 Answer 82 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
samuel
Top achievements
Rank 1
samuel asked on 08 Aug 2013, 01:14 PM
Hi,
I use Visual Studio 2012.
I use Telerik WinForm with version 2013.2.724.40.

In my RadForm, I use 2 Treeviews. The first Treeview is filled out with a Datasource. 
I want drag & drop a node to the second Treeview. 
I have modified the property AllowDragDrop and AllowDrop in True for all treeview.

When i drag & drop the first node to the other Treeview, it's ok. The node is deleted in the first Treeview and it is created in the second. 
But if I drag & drop an other node, the drag & drop not works and the nodes moves in the first treeview. 

I want to know if you've seen this problem. And if you do not have a  code for around this problem.

best regard,
 

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 13 Aug 2013, 06:24 AM
Hi Samuel,

Thank you for writing.

Drag and drop between treeviews by using the AllowDragDrop property is supported in unbound mode only. If you want to perform such in bound mode as well (or in mixed mode as in your case) you will have to implement you own drag and drop functionality. Attached you can find a sample demonstrating how this can be achieved. Feel free to modify it to match your needs.

I hope that you find this information useful.
 

Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Treeview
Asked by
samuel
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or