DeLe
DeLe

Reputation: 2480

Extjs 4.1 - How to set singleExpand false in treepanel

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

Upvotes: 1

Views: 146

Answers (1)

Josh
Josh

Reputation: 461

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

tree.singleExpand=false;

tree.updateLayout();

Upvotes: 2

Related Questions