Client side question - drag drop in root

2 posts, 0 answers
  1. Karl Wilkens
    Karl Wilkens avatar
    206 posts
    Member since:
    Oct 2012

    Posted 22 Oct 2008 Link to this post


    We are using the client side objects and this works well for drag and drop except if we are performing operations in the root. I am not sure how to handle this - as we normally get the parent using get_parent but for root nodes this throws a javascript error. Is there a safer way to test to see if you are dragging to the root and thereby, determining that the destination for the drop is in the root? Thanks.
  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 23 Oct 2008 Link to this post

    Hi Karl Wilkens,

    You can check this KB article:
    (ID#910) How to distinguish whether node.get_parent returns the parent node or the parent treeview?

    I hope this helps.

    Veselin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top