Asynchronous TreeView Nodes
Hello,
at first, sorry for my english. I have a problem with silverlight web page. I have stored tree hierarchy (almost 20.000 records) in database. This tree I need to display in silverlight treeview. Because of this huge amount of data, I decided to used asynchronous calls. In page load I add to treeview only root of the tree, on selected treeviewitem I ask asynchronous server for his nodes. I received an answer, update observableCollection (used like itemsource of treeview) with new nodes, but refresh of treeview did not happend :( .
Answer from server is represented like xml, so I am using LinqToXml to create a ObervableCollection of objects. Next :
this.MyTreeVIew.ItemSource = wups // ObservableCollection parsed from Xml.
In asynchronous answer I've got obervableCollection of all subnodes of selected node from treeView. So, I update main obervableCollection's object with new received obervableCollection.
In finally treeview I see only first node, but no sub-nodes :(. Is it possible to bind treeview asynchronously using this method, or not? Because of huge amount of data I do not want to ask server for all data and display them in treeview.
Please help and thanks for your answer.
Lycantrophe