PDA

View Full Version : [CLOSED] treePanel.getRootNode().cascadeBy



supera
Apr 02, 2013, 8:42 PM
Hi!

I'm using the cascadeBy function to navigate in all nodes of treePanel.
I wish adding cls of some nodes. But 'this' return a record data instead of node component.
How I can get the node componente and call addCls function???

thanks for any help!

Baidaly
Apr 03, 2013, 1:04 AM
Hello!

You should use getNode method: http://docs.sencha.com/ext-js/4-2/#!/api/Ext.tree.View-method-getNode


App.TreePanel1.getRootNode().cascadeBy(function(no de) { console.log(App.TreePanel1.getView().getNode(node) ); } )

supera
Apr 03, 2013, 11:27 AM
Hi Baidaly

Thanks a lot for your help! Works very fine.