Programatically Drop an External Div in JSTree
        Posted  
        
            by 
                Ted Mosbey
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ted Mosbey
        
        
        
        Published on 2011-01-11T10:47:32Z
        Indexed on 
            2011/01/11
            10:54 UTC
        
        
        Read the original article
        Hit count: 349
        
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.
© Stack Overflow or respective owner