This is a migrated thread and some comments may be shown as answers.

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

1 Answer 222 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Donna Stewart
Top achievements
Rank 1
Donna Stewart asked on 05 Aug 2014, 07:55 PM
 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 - http://dojo.telerik.com/EluY/8

Donna

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 Aug 2014, 07:24 AM
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.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Donna Stewart
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or