In order to implement this scenario you will need to handle the first TreeView
event in case when the TargetDropItem
is in the second TreeView
control. This will implement the copy drag from tree1 to tree2.
In order to deny drag/drop operations from tree2 to tree1, you need to handle the OnDropQuery()
event for the first TreeView
. Then if the dragged item comes from the second tree, you will need to return a QueryResult
false, which will indicate that the drop operation is invalid and will not allow it to happen.
I attached a sample project to get you started. I hope it helps.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items