I have an application with RadTreeView with usage of DragDropManager, we have recently migrated from RadDragDropManager.
With RadDragDropManager the drop event(RadDragAndDropManager.DropInfoEvent with DragStatus = DropComplete) did not remove the dragged item from the tree and we relied on this in our app logic. Changing this would be a pain.
The DragDropManager on the other hand removes the item, regardless of the DragEventArgs.Effects value, except when the effects are set to None - but in such case the OnDrop handler is not called.
What I need, is to
- intercept the Drop event (or maybe DragDropCompleted event),
- get both the target tree item and dragged data
- the dragged item is not removed from the tree
Additionaly, we are still on silverlight 4, therefore we cannot use features later than those in telerik radcontrols 2012 q2.
According to solution proposed here
, setting the TreeViewDragDropOptions.DropAction would solve this, but I am afraid the type TreeViewDragDropOptions is not present in telerik 2012 q2.
Using a DragDropCompletedHandler instead of DropHandler (with Effects = None) prevents the dragged item from being removed, but I cannot find a way to determine the target item.
What is the best solution (workaround where I remember the target item separately or using the old RadDragDropManager instead etc..).