RadTreeView Drag only

2 posts, 0 answers
  1. Su
    Su avatar
    1 posts
    Member since:
    Aug 2010

    Posted 15 Oct 2010 Link to this post


    I use RadTreeView to display the content in a hierarchical structure. An item in the tree is dragged onto another control which is working. The thing which I want to disable is altering the structure of the tree by dragging the items within the tree. How can I do this?

    The tree items are bound to a collection & use ItemTemplate to display the items.

    Thank you.
  2. Hristo
    Hristo avatar
    352 posts

    Posted 19 Oct 2010 Link to this post

    Hi Su,

    You can attach a class handler for the tree view to DropQueryEvent of the RadDragAndDropManager (with last parameter true). In the attached handler you can implement the required logic to allow or forbid the drop operation. The attached project demonstrates described solution. Also, it contains a commented code which demonstrates a slightly different approach. You can employ this one that best fits your needs.

    Please let us know if you need more info or the solution is not what you were looking for.

    Sincerely yours,
    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