Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery treeview with sortable

I was just wondering if anyone knows of any way to get the bassistance treeview plugin to work with jQuery UI's sortable plugin? Particularly in terms of being able to drag and drop the element from it's nested ul to the parent ul or vice versa. Two other requirements are that I have the ability to prevent dropping onto specified elements (for example: element with class="no-drop"), and the ability to reference a function after the drop event.

If there is no real feasible way of doing this with those plugins, does anyone happen to know of another plugin?

Kind Regards, Remy

like image 738
Remy Avatar asked Sep 08 '09 14:09

Remy


3 Answers

I did have the same problem, have a look at nested sortable. It probably is too late but might be helpful for others later.

like image 63
Jaan J Avatar answered Oct 18 '22 13:10

Jaan J


I would like to add http://mjsarfatti.com/sandbox/nestedSortable/

like image 5
Thomas Jensen Avatar answered Oct 18 '22 14:10

Thomas Jensen


The jstree plugin has a pretty solid code base with, for example, many events to attach your own logic to.

like image 1
chelmertz Avatar answered Oct 18 '22 14:10

chelmertz