ContextMenu and DragDrop provider

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

    Posted 06 Jun Link to this post

    Hi,

    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,

    Mingxue

     

  2. Answer
    Martin
    Admin
    Martin avatar
    1099 posts

    Posted 09 Jun 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.

    Regards,
    Martin
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mingxue
    Mingxue avatar
    25 posts
    Member since:
    Apr 2016

    Posted 14 Jun in reply to Martin Link to this post

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