But on a dynamic tree you can't transform any non leaf nodes into a leaf node.
And that's not god..If a node doesn't have any children when its loaded that shouldn't mean it can't have any children always.

Just because the node is at the lowest level of the tree, doesn't necessarily make it a leaf. A leaf node is only created if you specify it in the config for the node. If there's the possibility data might be added under it, then don't specify that property.

great change, but how do you manage the icon?

great change, but how do you manage the icon?

If I add the following to my ext-all.js with the 1.1 version. My leaf does accept children however, the icon for the node remains a leaf and not a folder. Do you know how I would go about declaring the image of the said node to automatically have the folder icon?