Prompt Dialog upon Drag and Drop

2 posts, 0 answers
  1. Pete
    Pete avatar
    14 posts
    Member since:
    Jun 2010

    Posted 01 May 2012 Link to this post

    I have a treeview that allows drag and drop. I'm able to move or copy branches server side in the "OnNodeDrop" event, from one node to another.  What I would like to do is when a user attempts to drag a node and drop it, before this happens popup a dialog that asks the user to Move, Copy or Cancel the operation.  Based upon that input response perform the necessary action.  What is the best way to implement this? Thanks
  2. Bozhidar
    Bozhidar avatar
    1190 posts

    Posted 03 May 2012 Link to this post

    Hello Pete,

    I've attached a sample project that demonstrates how you can achieve this functionality with the help of RadWindow. In the sample I've implemented a client-based drag and drop mechanism, which will preserve the transferred items after postback, which is the best and simplest approach when using RadWindow.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top