formatter:'actions' has not yet been documented. The current version of jqGrid 3.8.2 supports some parameters that you need. On lines 394-466 of the current version jquery.fmatter.js you can see more.
You need onEdit , afterSave (in the Submit options) and delOptions.onclickSubmit .
Honestly, I hadnβt used the βactionβ formatter before, and I realized that I was writing demos that also addressed all your questions. To make it easier to find an example, include the most important part of the code here:
var grid = $("#list"); grid.jqGrid({ datatype: "local", data: mydata, // init local data which will be edited editurl: 'clientArray', // we will use local editing colNames:['Actions', ... ], colModel:[ {name:'act',index:'act',width:55,align:'center',sortable:false,formatter:'actions', formatoptions:{ keys: true, // we want use [Enter] key to save the row and [Esc] to cancel editing. onEdit:function(rowid) { alert("in onEdit: rowid="+rowid+"\nWe don't need return anything"); }, onSuccess:function(jqXHR) { // the function will be used as "succesfunc" parameter of editRow function // (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing
Oleg Mar 05 2018-11-15T00: 00Z
source share