Cancel Drag&Drop event.

2 posts, 0 answers
  1. Tom Thomas
    Tom Thomas avatar
    4 posts
    Member since:
    Nov 2009

    Posted 15 Mar 2010 Link to this post

    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




  2. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 19 Mar 2010 Link to this post

    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.
Back to Top