jqGrid列的统计
生活随笔
收集整理的這篇文章主要介紹了
jqGrid列的统计
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
$("#List").jqGrid({ url: "${pageContext.request.contextPath}/cbfx/getCbhzList.do", datatype: "json", mtype: 'GET', colNames:["成本類別","費用","去年同期費用","備注"], colModel:[ {name: "cblb", align: 'center', width:120}, {name: "fy", align: 'center', width:100}, {name: "qntqFy", align: 'center', width:100}, {name: "", align: 'center', width:100} ], rownumbers:true, rowNum: 10, page: 1, footerrow:true, gridComplete: completeMethod, total: 15, rowList: [10, 20, 30], pager: "#cbhzPager", viewrecords: true, height: "auto", autowidth: true, gridview:true, autoencode: true, multiselect: false, caption: "標題" }).navGrid("#cbhzPager", { refresh: false, edit: false, add: false, del: false, search: false }); /*統(tǒng)計功能 */ function completeMethod(){ var sum_Fy=$("#List").getCol('fy',false,'sum'); var sum_qntqFy=$("#List").getCol('qntqFy',false,'sum'); $("#List").footerData('set', { "cblb": '合計', fy: sum_Fy, qntqFy: sum_qntqFy }); } });
?
轉(zhuǎn)載于:https://www.cnblogs.com/dongh/p/6645953.html
總結(jié)
以上是生活随笔為你收集整理的jqGrid列的统计的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab神经网络函数
- 下一篇: JS里的时间有关的标签