javascript - jqgrid aftersavefunc not firing -
i'm using jqgrid 4.8 javascript, i'm using inline edit , clientarray. now, want change value in cell , save row, code is:
$("#jqgrid").jqgrid('setcell', rowid, 'comments', 'test'); var saveparameters = { "successfunc": null, "url": 'clientarray', "aftersavefunc": function (rowid, response, options) { alert('b'); }, "extraparam": {}, "errorfunc": null, "afterrestorefunc": null, "restoreaftererror": true, "mtype": "post" }; $("#jqgrid").jqgrid('saverow', rowid, saveparameters);
...but alert never fires. doing wrong?
this fire if call:
$('#jqgrid').jqgrid('editrow', rowid, false);
reference:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing#saverow
Comments
Post a Comment