Inside the ‘dragEnd’ event, how can I determine where the object was dragged (in terms of parent/child)?
Our treeview is built from a database with unique id’s for each node (which we set using the “id” property of our json datasource). At the end of the drag operation, I’d like to know what element was dragged (so I can get it’s unique id for database updates) as well as its new parent (again, so I can get it’s ID to “re-parent” the item in the database).
I’d also like to know the position within the new parent for ordering, but I think I can get that through an indexOf somehow (not sure — still trying to tackle that).
Any help is appreciated. Thanks.