Drag Drop between two RadTreeView

2 posts, 0 answers
  1. Robert
    Robert avatar
    34 posts
    Member since:
    May 2009

    Posted 17 Aug 2009 Link to this post

    I have two RadTreeview and was wondering after drag drop one node to the other can I still keep that nope available after the drop.  Every time it gets removed even if I dont add .Owner.Nodes.Remove.  

    Also, is there a way to validate (customvalidator) to make sure that the node getting brought over is not the same as another node that is already in the node list?

  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 20 Aug 2009 Link to this post

    Hi Robert,

    When you add the node to the Nodes collection of the destination treeview it is automatically removed from the Nodes collection of the source treeview. To overcome that - do not add the node to the Nodes collection, but add a copy of the node to the Nodes collection:


    The node drop events will not fire if you try to drag a child node onto its parent.

    Sincerely yours,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top