JqGrid自动合计汇总

来源:互联网 发布:幻想降临现实知轩 编辑:程序博客网 时间:2024/06/06 09:02

声明:

[csharp] view plain copy
  1. footerrow:true  

使用:

[html] view plain copy
  1. var sumValue = $(this).getCol('需要汇总的列名', false, 'sum');  
[html] view plain copy
  1. $(this).footerData('set', '需要汇总的列名': sumValue);