views:

35

answers:

0

I have code that gets data from a server and places them in a TreeView control (.Net 1.1 version - the one that has Microsoft.Web.Ui.etc.etc as a namespace). The TreeView is displayed in a div area that becomes visible when the user clicks a certain button. The problem is after filling up the first level of the Tree, the div area is already shown and when the user clicks on a node in the tree that's supposed to have subnodes (or subtrees), sometimes the asynchronus call to the server is not yet complete. This means that the data in the tree is not yet complete and thus when u click on a node that supposedly has subnodes that haven't yet been retrieved from the server, that particular node would expand but would hav inaacurate structure.

One solution we thought was to somehow make the div area visible after the asychronus call completes. Any suggestion as to how we would do this? Do you have any other idea as to how to solve this particular problem?