ligureUI 刷新列求和

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

 

posted @ 2016-01-14 17:26  Earic  阅读(479)  评论(0编辑  收藏  举报