View Full Version : [2.0b1][CLOSED] TreeNode.cascade eachChild children issue

22 Oct 2007, 7:04 PM
Issue: node.cascade() node.eachChild() does not return children that have not been rendered.

If I was to send back a tree like: (sudo code)
{node, children: [node, node, node]}
the Tree will know what to do with the children when I expand and it will not make an async request because it already has the children data.

The problem is if I NEVER expand the parent then node.cascade and node.eachChild return no children eventhough there were children passed just not registered. I understand the issue/problem and was hoping that is may be an oversite with the new way of rendering things.

Current Work around is to expandAll() collapseAll() to register my children before I call the node.cascade() :(


22 Oct 2007, 7:12 PM
It's not really a bug, just confusing. ;)

See if thread (http://extjs.com/forum/showthread.php?p=73642#post73642) helps out at all...

23 Oct 2007, 12:49 AM
Use this: http://extjs.com/deploy/dev/docs/?class=Ext.tree.TreeLoader&member=preloadChildren

23 Oct 2007, 6:35 AM
Genius!!! Must of missed that one. :)