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

undoing a move-node-operation

3 Answers 68 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
andi
Top achievements
Rank 1
andi asked on 15 Apr 2008, 07:14 PM
hello,

i want a msgbox to appear when a node is moved to another. the user should confirm the operation or cancel it.

i tried to handle it by using the dropped event but i cannot move the moved node back to its origin parent node...

how can i handle it?

thanks, andreas

3 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 18 Apr 2008, 03:42 PM
Try the DragEnding event.  The event arguments have a Cancel property that you can set.

Hope this helps.

Jon
0
Nikolay
Telerik team
answered on 21 Apr 2008, 06:52 AM
Hi Аndi,

You can cancel the operation if you subscribe to the DragEnding, but not to the DragEnded event. Currently, we have an issue with this scenario. When the message box appears, even if you confirm the operation, the node will not be dropped into its new place. This will be addressed for one of our next releases. However, I have made a sample project for you which demonstrates how to workaround this.

If you need additional assistance, do not hesitate to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stefan
Telerik team
answered on 21 Mar 2011, 10:15 AM
Hello Jonathan,

Please note that in Q1 2011 we have introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out. For more information on our latest release refer to this blog post.

Regards,
Stefan
the Telerik team
Tags
Treeview
Asked by
andi
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Nikolay
Telerik team
Stefan
Telerik team
Share this question
or