I want to prevent dragging items to the same level as the root, how do I do this?
thanks.
1 Answer, 1 is accepted
0
Petar Mladenov
Telerik team
answered on 17 Feb 2011, 02:23 PM
Hello Pablo Tola,
Imagine a RadTreeView's rootlevel is bound to a collection of CategoryViewmodels. You can use the RadDragDropManager's OnDrop event to prevent dropping an item in the root level when you drag an item below the tree items. On the other hand, you have to use the PreviewDragEnded event of the RadTreeView in order to prevent dropping before and after a rootlevel item. Please check out this code and let me know how it goes on your side.