PDA

View Full Version : Getting treenode, even though it isn't rendered



karga
15 Jul 2009, 2:43 AM
Hi,

First of all, sorry if this is already in the docs, forums or some other place - i haven't been able to find it (yet)

I sometimes need to get a reference to a treenode, even though it isn't rendered.. I've read on the forums, that it's not possible as standard?

I've tried using expandAll before getNodeById, and then collapseAll, but of course then the whole treestructure that was selected before is gone..

I've also tried findChild with the attribute and value in place. That works, but only if the node I'm searching for is a "first level" child to the node I'm using findChild on

I've worked my way down to the problem being that the tree loads async, but how do i change that then?

Any other suggestions would be golden!

Thanks in advance :)