If you use current version of jqGrid you can use beforeSaveRow
callback to make some actions, like modification of URL, before the row will be saved. Unfortunately formatter: "actions"
don't allow you to set beforeSaveRow
callback, but you can still use $.jgrid.inlineEdit
to do this. The corresponding code could be something like
$.extend(true, $.jgrid.inlineEdit, {
beforeSaveRow: function (option, rowId) {
option.url = restPutURL + '/' + rowId;
}
});
or
$.extend(true, $.jgrid.inlineEdit, {
beforeSaveRow: function (option, rowId) {
option.url = this.p.editurl + '/' + rowId;
}
});