ActionExtender Rebinding Issue

ActionExtender Rebinding Issue

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


Marjon1 posted on Monday, February 15, 2010

I've had a look on the forums and haven't found anything being raised about this problem.

When using the ActionExtender to perform the save operations for you and an error occurs, the object is not rebound to the BindingSource and therefore the ActionExtender essentially stops operating because the datasource is null.

I've attached a sample which demostrates the problem very easily, enter the required information and then hit save and you will receive an error (data_portal_fetch), hit save again and you will get a different error. In theory you should keep getting the same error.

I've looked at the code (CslaActionExtender.cs) and I think in the exception block it should be rebinding to savableObject like it would attempt to do if the save was complete and RendingAfterSave was true.

The references to CSLA are probably incorrect in the project, and apologies for that :)

RockfordLhotka replied on Monday, February 15, 2010

Sounds like a bug, I've added it to the list.

Copyright (c) Marimer LLC