How to call getChangedCells method for jQGrid CellEdit

巧了我就是萌 提交于 2020-01-06 08:33:08

问题


I can get the changed cell/row values using the following:

var ret = $(”#grid”).getChangedCells('all'); // Return Rows

or

var ret = $(”#grid”).getChangedCells('dirty'); // Returns the changed cells.

回答1:


According to the jqGrid docs for getChangedCells:

Returns an array of the changed cells depending on method (string, default 'all'). When 'all' this method returns all the changed rows; when 'dirty' returns only the changed cells with the id of the row

So I am confused why $("#grid").getChangedCells('dirty') does not meet your needs. Perhaps you can elaborate further?



来源:https://stackoverflow.com/questions/1147157/how-to-call-getchangedcells-method-for-jqgrid-celledit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!