I have a jqgrid. My requirement was "load the grid with ALL ROWS IN EDIT MODE by default". So I used Oleg answer in this link
Now. I want to save data on each cell that has data. How to do that?
One of the problem why one should not makes ALL ROWS IN EDIT MODE is the fact that all the change are not saved. Such grids have some other disadvantages: sorting is disabled for example. So you have to provide some additional interface like "Save all changes" button outside of the grid. You should call saveRow
on every row in the save way like you called editRow
at the beginning. See the old answer, this one or you can just place the part of code inside of $th.click(function () {...})
from the answer in your click
event handler of "Save all changes" button.