WebGrid with BatchUpdate not leaving EditMode after button is clicked

1 reply. Last post: October 6, 2010 11:38 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Shawn AugustMember

I can't seem to reproduce this but some of our users are reporting data that is entered in a WebGrid is not persisting to the database. It's not consistant or reproducible that I have found.


I have a button that creates a WebGrid NewRow and defaults some data. There is validation at the RowValidate event and when the user clicks the Save button which prompts the user to enter the required fields before allowing a postback. I have seen the following:

 

The user enter data and then get a validation message stating that a field is required (it was not filled in) yet data was definately in the field. After clicking the Save button again, the page is posted but the data is not saved. This means that the validation DID pass but ultimately was not in the Server-Side GetChanges list.  This is odd because the fact that the Grid did see all the required fields as being populated except one. Then, the clicking of the Save button passed validation meaning the last field was found yet no data at all was saved? In this situation, the row had the EDIT icon meaning it never went back to the ADD ICON meaning the data was saved on the client before posting back.

 

Anyone ever seen this issue?

 

-Shawn

All times are GMT -5. The time now is 6:19 AM.
Previous Next