This question is locked. New answers and comments are not allowed.
I have Model:
| public class DataModel |
| { |
| Web.Services.CSISContext context; |
| public ObservableCollection<Site> Sites { get; set; } //Site has list of Contracts |
| public ObservableCollection<Contract> Contracts { get; set; } |
| public void LoadContracts(Site site) |
| { //psevdo code. In real life it gets data from DB or WCF service... |
| if (site==Site1) |
| site.add(contract1); |
| site.add(contract2); |
| if(site==site3) |
| site.add(contract100); |
| } |
Site1
Contract1
Contract2
Site2
Site3
Contract100
Site 2 doens't have any contracts (database or WCF service returns empty collection).
Tree is working OK if I click Site1 or Site3 - load on demand populates Contracts and they are shown in corresponding nodes.
If I click Site2 - tree shows loadOnDemand animation even after Database query is over. Why Animation is not hidden after database return empty collection - means no childred for Site2?.
