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

Disable Drag in TreeViewItems

1 Answer 83 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 13 Oct 2010, 06:52 AM
Hi,

I have RadTreeView with drag/ drop functionality.
I want to disable drag for some of items depending on runtime calculation.

how to achieve this functionality?

Thanks & Regards,
saurabh

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 15 Oct 2010, 01:27 PM
Hi saurabh,

In order to disable drag and drop on specific RadTreeViewItem you can handle the PreviewDragStarted() event thus canceling the drag operation if this specific item is among the selected item(s) for dragging.

Please take a look at the attached solution and let me know if it satisfies you. I will be glad if I can further assist you.

Best wishes,

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
saurabh
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or