undoing a move-node-operation

4 posts, 0 answers
  1. andi
    andi avatar
    34 posts
    Member since:
    Jan 2008

    Posted 15 Apr 2008 Link to this post

    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
  2. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Apr 2008

    Posted 18 Apr 2008 Link to this post

    Try the DragEnding event.  The event arguments have a Cancel property that you can set.

    Hope this helps.

    Jon
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 21 Apr 2008 Link to this post

    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
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 21 Mar 2011 Link to this post

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