Hi,
I have a page with radio button group on the top and a TreePanel below it. Upon selectionchange of the radio button group, I reload the rootNode (which is an AsyncRootNode) with a different id.
The problem is that when the user changes selection quickly I get an error:"this.getOwnerTree() is null or not an object".Code:tree.getRootNode().id = newID; tree.getRootNode().reload();
Ideally I would like to reload the TreeNode once the current loading and rendering is complete, but I couldn't get it to work. So what I am doing is disabling the radio button group upon selectionchange and would like to enable it when all the children and grandchildren of the rootNode have been loaded and rendered. The 'load' event of AsyncTreeNode does not work if the children have children.