Edit level mismatch in UndoChanges in ProjectTracker Silverlight Sample

Edit level mismatch in UndoChanges in ProjectTracker Silverlight Sample

Old forum URL: forums.lhotka.net/forums/t/10982.aspx


gautamh posted on Tuesday, December 13, 2011

An update here.

I think the issue is that when a row (item is added to the collection) is added by clicking the Add New, the edit level of that object is set to 1. When we double click a cell on the row to activate the cell/row, the edit level goes up to 2. Now, when we try to cancel, the edit level of the parent collection is 1 and that of the child item is 2 and hence boom.

 

Hi,

I have downloaded the ebook sample project tracker silverlight application.I get an Edit level mismatch exception on following the below steps

  1. Select the "Edit roles" menu option.
  2. Click Add New.
  3. Double click on the Name column of the newly added row. You should see the validation message pop up.
  4. Click Cancel and an UndoException is thrown at UndoableBase.cs in the UndoChanges method.

I'm having the same issue in our line of business application. I've followed some suggestions mentioned in earlier posts to set the ManageObjectLifetime to false. But, this has not helped.

Has anyone encountered this? Any help is appreciated.

Thanks.

Copyright (c) Marimer LLC