PDA

View Full Version : Collapse child nodes and not the root node.



mchourishi
3 Oct 2016, 8:30 PM
I have a collapse all button and on the click of it I need to collapse the parent nodes except the root node.
So the root node must display the parent nodes as collapsed.Currently it just displays the root node on collapse.

Jad
3 Oct 2016, 10:33 PM
hello

try this http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.NodeInterface-method-collapseChildren