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

Cancel Drag&Drop event.

1 Answer 64 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tom Thomas
Top achievements
Rank 1
Tom Thomas asked on 16 Mar 2010, 12:33 AM

I've seen the samples here for canceling a Drag and Drop event across different object using the Manager but I simply need the following.

I have a treeView and the user can drag and drop nodes within the same treeView only.

I want to prompt the user "Do you want to do this?".

if dialogResult==OK then do it else set Handled=false.

Problem is that the prompt for the messagebox is asych and the previewDrag completes and calls the Drag before the response to the messagebox result is called.

How can I prompt the user during a drag and drop and cancel if needed?  Can it be done without the DragAndDrop manager and use the TreeView properties and events?

Using 2010 Q1 Silverlight 3

THX

Tom

 

1 Answer, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 19 Mar 2010, 01:51 PM
Hi Tom,

I apologize for the delayed response. I prepared a sample project that demonstrates the scenario you want to implement. Please take a look at the project and let me know if it will work for you.

Best wishes,
Tihomir Petkov
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.
Tags
TreeView
Asked by
Tom Thomas
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Share this question
or