Extjs 4.1 - How to set singleExpand false in treepanel

157 Views Asked by At

I created a treepanel has config singleExpand: true,

I try to change it in somewhere like tree.singleExpand = false; but that not working. Is that possible? how can i do that thank

1

There are 1 best solutions below

0
On

you likely have to set it to false, then updateLayout()...

tree.singleExpand=false;

tree.updateLayout();