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

drag and drop treeview

1 Answer 35 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
mher
Top achievements
Rank 1
mher asked on 09 Jun 2011, 01:45 AM
I have two three views. One has hierarchical data and the other is flat data. is there a way to disable dragging and droping group items into the flat treeview?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 14 Jun 2011, 11:32 AM
Hi mher,

I guess by "group" item you want to indicate an item that has child items. If so, you can examine the attached project where a basic approach is realized. It uses the PreviewDragStarted event of the source tree and stops the drag operation if the dragged item has children. Please let us know if this helped you.

All the best,
Petar Mladenov
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
Tags
TreeView
Asked by
mher
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or