In my application some nodes are loaded when you click on another. All nodes are expandable. In my example, see below, the first node (added by children config property) is shown with expander but the second node (added by appendChildren) has no expander. In Ext 4.0 both nodes have an expander. How can I ensure that both nodes have an expander, even if they do not have any children?
This is not entirely true. You only assume (for the developer) that he wants to add nodes on the client side. I have a function to locate required node somewhere deep in the tree. To avoid expanding each branch separately (and calling the server multiple times), I can load entire "subtree" from the server. Then I add it to the client tree using appendChild - where specific node is a "merge point".
In that case all nodes are from the server, have ID's and everything they need, so setting them as "loaded" is not correct.