问题
I can get the changed cell/row values using the following:
var ret = $(”#grid”).getChangedCells('all'); // Return Rows
or
var ret = $(”#grid”).getChangedCells('dirty'); // Returns the changed cells.
回答1:
According to the jqGrid docs for getChangedCells:
Returns an array of the changed cells depending on method (string, default 'all'). When 'all' this method returns all the changed rows; when 'dirty' returns only the changed cells with the id of the row
So I am confused why $("#grid").getChangedCells('dirty')
does not meet your needs. Perhaps you can elaborate further?
来源:https://stackoverflow.com/questions/1147157/how-to-call-getchangedcells-method-for-jqgrid-celledit