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

ContextMenu and DragDrop provider

2 Answers 101 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Mingxue
Top achievements
Rank 1
Mingxue asked on 07 Jun 2016, 12:14 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 09 Jun 2016, 04:00 PM
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.
0
Mingxue
Top achievements
Rank 1
answered on 14 Jun 2016, 10:01 PM
Many thanks. It is totally the one I needed.
Tags
DragAndDrop
Asked by
Mingxue
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Mingxue
Top achievements
Rank 1
Share this question
or