Hello Jorge Alberto,
I am glad that the example works for you. However, let me just clarify a few things, just in case.
You are right about the PreviewDragEnded
event, canceling the drop
operation. This event handler is useful, when you want to cancel adding/removing items from the RadTreeView
. However, if you want to disable the drop operation on specific items and provide the user with a corresponding feedback, you can set the IsDropAllowed
property of the items to false
either in the ItemPrepared()
event handler or in the OnDropInfo()
event handler or pretty much wherever you need to.
Another approach would be to handle the OnDropQuery()
event and set the QueryResult
accordingly as in the previously attached example.
Further description of the Drag And Drop functionality of the RadTreeView
can be found in this
I hope this information will help you choose the best suited approach for your scenario.
Should you need any further assistance, please do not hesitate to contact us again.
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