PDA

View Full Version : [CLOSED] TreePanel. items checked in cascade



supera
May 17, 2012, 8:13 PM
Hi!

In treePanel, I'm setting all nodes as checkBox nodes!
I want when I set a node as checked/unchecked, all children of this node are checked/unchecked too.

How I can do this? I'm not finding the apropriated method to set the node as checked/unchecked (in Javascript).

Daniil
May 17, 2012, 8:20 PM
Hi,

I think you should use the cascadeBy method.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.NodeInterface-method-cascadeBy

supera
May 18, 2012, 2:12 PM
Works Fine!

Thanks a lot, Daniil.