dataGrid=$("#dataGrid").ligerGrid({ columns: [ {display:'门店编号', name:'attr1', 150, align:'left' }, {display:'门店名称', name:'attr2', 150, align:'left'}, {display:'日期范围', name:'attr3', 150, align:'right'}, {display:'支付宝金额', name:'attr4', 150, align:'right',totalSummary: { type: 'sum' }}, {display:'微信金额', name:'attr5', 150, align:'right',totalSummary: { type: 'sum' }}, {display:'OK卡金额', name:'attr6', 150, align:'right',totalSummary: { type: 'sum' }}, {display:'东方购物金额', name:'attr7', 150, align:'right',totalSummary: { type: 'sum' }}], pageSize:50, data: null, centerWidth, height:height-35, rownumbers:true, usePager:false });
dataGrid.options.data=$.extend(true, {}, {Rows: list,Total: list.length}); dataGrid.UpdateTotalSummary;