If form editing changes primary key, row id will not change.
Row ids are created from primary key. So after primary key editing in form row id becomes wrong.
Using reloadAfterSubmit: true, loses focus from added row so it should avoided. How to refresh jqgrid row id after primery key is changed by form editing without realoading whole grid ?
Form edit aftersubmit method returns correct changed row new id:
afterSubmit: function (response, postdata) {
var json = $.parseJSON(response.responseText),
return [true, '', json.Id];
}
However jqgrid does not change added row id to this. How to fix ?