Extjs序号分页切换时,序号的问题

来源:互联网 发布:linux系统usb无线网卡 编辑:程序博客网 时间:2024/05/16 07:04
{
            xtype: 'rownumberer',
            align: 'center',
            text: '序号',
            width: 40,
            renderer: function(value,metadata,record,rowIndex){    
            var store = this.up('grid').getStore();
            var currentPage = store.currentPage;
            return (currentPage-1)*30+rowIndex+1;
            },
            summaryRenderer: function (value) {
                return '<span style="font-weight:bold">合计: </span>';
            }

},

0 0