Disable Drag in TreeViewItems

2 posts, 0 answers
  1. saurabh
    saurabh avatar
    32 posts
    Member since:
    Jul 2010

    Posted 13 Oct 2010 Link to this post


    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,
  2. Petar Mladenov
    Petar Mladenov avatar
    3152 posts

    Posted 15 Oct 2010 Link to this post

    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
Back to Top