View Full Version : TreePanel and expand icon

14 Apr 2010, 4:27 AM
Hello all,

I have a tree where one root node and two child nodes for that are there by

Here once i get a click event on the child nodes i will populated the tree.

I want to show the + icon beside the child nodes by default as of now only after appending child nodes i it is i displaying the + icon.

any method or attribute i can use for this.


14 Apr 2010, 11:17 AM
Check out the leaf property of the node.

15 Apr 2010, 11:19 PM
Thanks for your reply,

i already kept the leaf:false , any way i found that exapandable attribute makes the difference.

16 Apr 2010, 5:20 AM
Can you post your code for the TreePanel?