Programatically Drop an External Div in JSTree
- by Ted Mosbey
I have a grid (slickgrid) which creates and destroys rows on the fly.
I know jstree uses .jstree-draggable to find the external drag targets, but applying them to the grid rows doesn't work - such that I've thought of using the grid drag, and on finish of the grid drag I want to call the jstree "drag_finish": function (data)
jQuery.jstree._reference($("#Tree")).dnd_finish();
The problem is that there is some null data. How would I Programatically Drop an External Div?
How does jstree apply the .jstree-draggable targets? I could add the .jstree-draggable class to the grid drag helper, but it doesnt seem to fire when dropped on the tree although it clearly has the class.
Any guidance would be greatly appreciated.
Regards.