Just curious about something.
When I want to display new data, I set the QueryableDomainServiceCollectionView backing the TreeListView to null. This triggers a GET on the MVVM VM property and the data is reloaded. I then often times automatically expand one first level item on demand by setting IsExpanded to true in the view model (after the first level is finished loading).
I was very confused that sometimes second-level processing was not occurring after a reload. I deduced that it was only when certain actions led to asking for the same information that had originally been loaded into the TreeListView (before nulling it out). The problem was that while the first and second level data was there, the second-level data wasn't being searched and highlighted as no even was triggered saying that it was done loading.
Turns out, the QueryableDomainServiceCollectionView is apparently using the data it already had from the previous load and thus the second-level data was not being fetched from the database and triggering load events.
Just wondering if this should be expected. After setting the QueryableDomainServiceCollectionView to null I would expect the first level information to be gone and certainly the data that was loaded programmatically "on demand" should be gone to. But, it's all there. Very smart of it, actually, just unexpected. I mean, I really don't want it to "remember" the second level data, but I can't think of any harm done.
Should all of this be expected? Thanks.
-Rob
When I want to display new data, I set the QueryableDomainServiceCollectionView backing the TreeListView to null. This triggers a GET on the MVVM VM property and the data is reloaded. I then often times automatically expand one first level item on demand by setting IsExpanded to true in the view model (after the first level is finished loading).
I was very confused that sometimes second-level processing was not occurring after a reload. I deduced that it was only when certain actions led to asking for the same information that had originally been loaded into the TreeListView (before nulling it out). The problem was that while the first and second level data was there, the second-level data wasn't being searched and highlighted as no even was triggered saying that it was done loading.
Turns out, the QueryableDomainServiceCollectionView is apparently using the data it already had from the previous load and thus the second-level data was not being fetched from the database and triggering load events.
Just wondering if this should be expected. After setting the QueryableDomainServiceCollectionView to null I would expect the first level information to be gone and certainly the data that was loaded programmatically "on demand" should be gone to. But, it's all there. Very smart of it, actually, just unexpected. I mean, I really don't want it to "remember" the second level data, but I can't think of any harm done.
Should all of this be expected? Thanks.
-Rob