Only reordering

2 posts, 0 answers
  1. Naresh
    Naresh avatar
    45 posts
    Member since:
    Jul 2008

    Posted 25 Jun 2009 Link to this post

    Hi,
    I am using radtree, i have a multi-level tree, and i want to allow only reordering (allow drag and drop between the nodes that have the same immediate parent).

    But i can't figure out how can i achieve it using only properties.

    I can do it in eventhandler OnNodeDrop

    like : "If sourceNode.ParentNode.ID = destNode.ParentNode.ID Then"

    but it dosen't work if i have multiple root nodes. And i can put a node as a child node of its sibling because both have the same parent id.

    Is there a way?



    regards,
    Naresh
  2. Naresh
    Naresh avatar
    45 posts
    Member since:
    Jul 2008

    Posted 25 Jun 2009 Link to this post

    Ok, got it, but not by simply setting properties :)

    Use  sourceNode.Parent.ClientID  instead of sourceNode.ParentNode.ID  to check in the event handler
Back to Top