
Question:
How to disable moving in jsTree 1.0, but not disabling dnd plugin?
Thanks.
Solution:1
I found the solution.
$("#tree").jstree({ //... "crrm" : { "move" : { "check_move" : function (m) { return false; } } } //... "plugins" : [ "crrm", "dnd" ] });
Solution:2
"crrm" : { "move" : { "check_move" : function (m) { if(m.cr.attr("id") == m.r.attr("id")){ return true; }else{ return false; } } } }
Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
EmoticonEmoticon