tonytomov/jqGrid — pull request #360 by andrelab (2012-08-17 04:39:20+00:00)
Title: Grid [SaveRow]: extraparam passed to aftersavefunc

The (aftersavefunc) function will receive an optional 3rd argument (o.extraparam)
the same object supplied in the saveRow call that can be used to pass
calling context data to the aftersavefunc handler.

currently only the row ID and a response:{true/false} are received as possible arguments.

ex:

var saveparameters = {
"successfunc": $t1,
"url": 'clientArray',
"extraparam": {
someArg: "That Can Be used by delegate $t2"
},
"aftersavefunc": grid_aftersavefunc, //$t2
"errorfunc": $t3,
"afterrestorefunc": null,
"restoreAfterError": true,
"mtype": "POST"
}

thegrid.jqGrid('saveRow', args.RowID, saveparameters);

$t2 signature can be as follows:

function grid_aftersavefunc(rowId, status, extraparam) {[...]}