Hi,
I have a collection of objects. I bind the collection to you TreeView. At the moment I get a top node from the DB, which has a parameter hasChildren. If it is true I add an empty child to parent's child collection. Then on expand of the parent node I want to load and display its children.
At the moment when I expand I get and add children, but parent node only has one empty node. So the datasource does not get updated. Any idea what is going wrong? Are there a better way to do this?
Thanks,
Alex
I have a collection of objects. I bind the collection to you TreeView. At the moment I get a top node from the DB, which has a parameter hasChildren. If it is true I add an empty child to parent's child collection. Then on expand of the parent node I want to load and display its children.
At the moment when I expand I get and add children, but parent node only has one empty node. So the datasource does not get updated. Any idea what is going wrong? Are there a better way to do this?
Thanks,
Alex