Cancel does not always refresh child lists

Cancel does not always refresh child lists

Old forum URL:

Mr X posted on Thursday, March 17, 2011


When I modify a root object and cancel the changes, the root object is reverted to its orignial state but its child lists do not  always reload.   Did anyone experienced this before?

Ex; Have a "User" root object with a list of associated projects.  When I cancel changes made to the user, its projects list does not always reload.  It usually works fine once or twice but if I keep modifying and cancelling the changes (without reloading the root object from my navigation), at one point the child list becomes empty. 

FYI ,I have a Silverlight 4 - MVVM - CSLA 4.0.1 application.  My code is devided in Client and Server sides and my child lists are loaded on demand. 

RockfordLhotka replied on Thursday, March 17, 2011

It is possible that you are canceling the root or parent back to the point where it didn't have a child collection - to where the child property was null, before it was loaded with a value. In that case, the property value will be reset to null and the child collection would be empty.

Mr X replied on Thursday, March 17, 2011

Thanks Rocky, i will continue my investigation. 

I now suspect the list not being refreshed in MVVM.  I have a ObservableCollection of childViewmodel which are also loaded on demand. maybe that is the one being refreshed.


Copyright (c) Marimer LLC