I’m using jqgrid 4.8 JavaScript, I’m using inline edit and clientArray. Now, I want to change value in a cell and save row, so the code is:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$("#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);</pre> |
…but the alert never fires.
I checked source, in function
|
1 2 |
saveRow : function(rowid, successfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc) |
(line 10146) i found, that editable variable is undefined, becuase I want to set new value into the cell not in edit mode.
How I must to set cell value to fire aftersavefunc?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top