View Full Version : Expanding a tree on an unrendered tab

11 Feb 2011, 3:14 AM
I've got a very complicated form spread across multiple tabs, so I'm using the default tabpanel setting of deferredRender : true in order to improve the start-up time.

But now I'm running into problems when I try to run expandPath() on an async tree. The JSON all works fine, the Node objects are created, but I always run into a:

Uncaught TypeError: Cannot call method 'appendChild' of undefined



As far as I can tell, this is because it's trying to render the nodes into a TreePanel that hasn't yet been rendered (because of the deferredRender).

Is there a way around this? Can I render the TreePanel offscreen? Or can I programmatically ask for a particular tab within a tabpanel to render itself, so that the TreePanel gets rendered in advance?

Thanks for any help!

11 Feb 2011, 5:06 AM
Yes, that's a limitation of the current TreeNodeUI implementation.