This is a migrated thread and some comments may be shown as answers.

[Solved] Collapsing and expanding nodes via webservice after Server-side populate creates duplicate records

1 Answer 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chuck Conway
Top achievements
Rank 1
Chuck Conway asked on 16 Feb 2010, 10:23 PM
I'm binding nodes on the server. These nodes can consist of multiple levels. On the client the tree is rendered expanded. When I collapse and re-expand a parent node, it calls the web service populating it's children. This creates duplicate records. Is there a way to prevent the web service call from populating duplicate records?

Thanks,

Chuck

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 18 Feb 2010, 06:09 PM
Exactly how are you populating the nodes on the server? It would seem as if there might be something that is causing the TreeView to look for further data when an item is expanded. Perhaps if you look into the Load-on-demand demo you can see if you are perhaps doing anything similar to it which would cause you to re-bind the same data as before.
Tags
TreeView
Asked by
Chuck Conway
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or