Grid changing state of rows / posting back all rows

Apr 19, 2012 at 8:35 AM
Edited Apr 19, 2012 at 12:10 PM

Hi
I am working with the grid component.
My scanario is like this. I upload a file to the server load the data in the controller and display it with the grid.
The user can make changes if that is the wish, and all rows need to be saved to the database, when the Save Changes button is pressed.
How can I get all rows posted back to the server?
I use ajax binding and InCell editing (batch editing)
Since the rows have not been edited in the grid they are not considered by the grid as modified, and not send back in any of the lists.
[Bind(Prefix = "inserted")]IEnumerable<PlayerViewModel> insertedPlayers,
[Bind(Prefix = "updated")]IEnumerable<PlayerViewModel> updatedPlayers,
[Bind(Prefix = "deleted")]IEnumerable<PlayerViewModel> deletedPlayers

There can also be a situation where no rows have been edited in the grid, in this case I still need all rows posted back, so they can be saved to the database.

I will really appreciate any help on this topic.

I am using ASP.NET MVC 3 C#