If editing the form changes the primary key, the line identifier will not change.
String identifiers are created from the primary key. Therefore, after the primary editing of the key in the string identifier of the string, it becomes incorrect.
Using reloadAfterSubmit: true, loses focus from the added row, so it should be avoided. How to update jqgrid row id after primery key is changed by editing the form without loading the whole grid?
The edit form of the aftersubmit method returns the correctly modified new id line:
afterSubmit: function (response, postdata) {
var json = $.parseJSON(response.responseText),
return [true, '', json.Id];
}
However, jqgrid does not change the added row identifier to this. How to fix?