Angular Kendo Treeview - do not allow drag and drop of child nodes

2 posts, 0 answers
  1. Donna Stewart
    Donna Stewart avatar
    127 posts
    Member since:
    Apr 2009

    Posted 05 Aug 2014 Link to this post

     Hi - me again -  as in my previous post, I have 2 treeviews.  I would like to be able to move only the parent nodes from one tree to parent nodes of the other.  I have a dojo with what I'm trying, but I keep getting undefined errors.  I have drag and drop events set.  It gives undefined errors when I drag and it still allows me to drag and drop a child node.  Thank you in advance for any help.

    Here's dojo link -

  2. Alex Gyoshev
    Alex Gyoshev avatar
    2513 posts

    Posted 06 Aug 2014 Link to this post

    Hello Donna,

    The undefined errors are triggered by the e.sourceNode.parent() call -- the sourceNode event argument is a DOM node, not a jQuery element, as described in the docs. See the updated Dojo snippet -- you can use the level method to determine the level of a node.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top