jQuery技术:如何为jQGrid CellEdit调用getChangedCells方法

我可以使用以下方法获取更改的单元格/行值:

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

要么

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

    根据getChangedCells的jqGrid文档 :

    根据方法返回已更改单元格的数组(字符串,默认为“all”)。 ‘all’时此方法返回所有已更改的行; 当’dirty’只返回带有id行的已更改单元格时

    所以我很困惑为什么$("#grid").getChangedCells('dirty')不能满足你的需求。 也许你可以进一步阐述?

      以上就是jQuery教程分享如何为jQGrid CellEdit调用getChangedCells方法相关内容,想了解更多jQuery开发(异常处理)及jQuery教程关注计算机技术网(www.ctvol.com)!)。

      本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

      ctvol管理联系方式QQ:251552304

      本文章地址:https://www.ctvol.com/jquerytutorial/524537.html

      (0)
      上一篇 2020年12月13日
      下一篇 2020年12月13日

      精彩推荐