View Full Version : Treepanel: only leafs dragable

18 Mar 2010, 11:52 AM
I want to make only the leafs of a treepanel dragable, the folders should not be dragable. I am currently sollving this with a listener:

'nodedragover': function(event) {if (!event.dropNode.leaf) return false}
but I was wondering if there is a more elegant solution.

18 Mar 2010, 12:54 PM
when you define nodes in json or so:

draggable : Boolean
True to make this node draggable (defaults to false)

18 Mar 2010, 1:59 PM
Yeah I don't have total control over the json source. I was hoping for a tree-wide setting that makes all non-leafs non-draggable.