Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 20
|
Hi please help:
I am using your treeview to represent a head-office and branch offices relationship, HO as the highest level node. Under the branch offices, there are work units, such finance, marketing and so on.
I used to load the whole tree, but then the database of the offices are getting larger, the tree are getting slower when loading, so I change the treeview in to load on demand mode, so first time loading, the tree only load HO and branch offices, without their working units.
Then I encountered problem when I need to add new unit in branch office: 1. I add the unit to the database. 2. I add the unit to the tree 3. Select the newly added node.-> this is where the proble is.
The treeview returns null everytime I try to treeview.findItem(adrress_of_the_new_node), where address_of_the_new_node is something like: ¨_0i/_2i/_2i/_3i¨, presumably the new node is not loaded yet by the new tree.
How can I rectify this? Please help.
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Try to call your populate code again for the parent node after you added the new node to your db on the server side. This should ensure all the child nodes, including the new node for the parent node are added.
Thanks!
|