ContextMenu and DragDrop provider

3 posts, 1 answers
  1. Mingxue
    Mingxue avatar
    26 posts
    Member since:
    Apr 2016

    Posted 06 Jun 2016 Link to this post


    I am using RadTreeView and trying to support DragDrop behavior in it. At the moment, I am writing my own DragDropProvider. I want to provide options when user release/drop, so that they can choose Copy/Move/Cancel etc.

    Is there any resources to help me achieve that?


    Many thanks,



  2. Answer
    Martin Ivanov
    Martin Ivanov avatar
    1452 posts

    Posted 09 Jun 2016 Link to this post

    Hi Mingxue,

    We do not have an example that demonstrates this exact scenario and there is no built-in support for it. However, you can achieve it using custom code. You can take a look at the Drag and Drop help article which demonstrates how to customize the treeview's default drag drop functionality. To achieve your requirement you can stop the default drop action and implement custom one that displays the described menu. You can find an example demonstrating this approach in the attached project. Please give it a try and let me know if it helps.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. Mingxue
    Mingxue avatar
    26 posts
    Member since:
    Apr 2016

    Posted 14 Jun 2016 in reply to Martin Ivanov Link to this post

    Many thanks. It is totally the one I needed.
Back to Top