PDA

View Full Version : Reloading a tree node


ssa962
09-27-2007, 10:02 AM
I have been trying to figure out why the following code doesn't work but I am yet to find an answer. Here is what I am doing -

1. create a tree with an AsyncTreeNode root

2. Refresh the root node after some time to grab the latest nodes -
root.reload();

3. Locate a newly added node in the tree using the id of the node -
tree.getNodeById(newNodeId);

In step 2, the root reloads the newly added nodes correctly but the tree is unable to find the new node in step 3. Although I can see that the node is there on the tree.

I am not sure if I am doing something wrong but I am completely clueless as to how to solve this problem. Any help will be highly appreciated.

SA