ext 4 前台分页,假分页

var store = Ext.create('Ext.data.Store', {
     model: 'wtModel',
     pageSize : eastcom.pageSize,
     autoLoad : false,
     proxy: Ext.create('Ext.ux.data.PagingMemoryProxy',{})
 });

 

var gridPanel = Ext.create('Ext.grid.Panel',{
  useArrows: true,
  id : 'gridPanel',
  fit : true,
     store: store,
     anchor : '100% 50%',
     columnLines: true,
     enableColumnHide :eastcom.enableColumnHide,
     columns: [
         {text: '日期',dataIndex: 'time',sortable: false,align: 'center',width:155},
         {text: '目的交换机',dataIndex: 'dest_msc',sortable: false,align: 'center',width:200},
         {text: '汇总',dataIndex: 'total',sortable: false,align: 'center',flex:1},
         {text: '接通率不达标次数',dataIndex: 'connrate',sortable: false,align: 'center',flex:1,renderer : linkFun1},
         {text: '寻呼无响应比不达标次数',dataIndex: 'bpnoresp',sortable: false,align: 'center',flex:1,renderer : linkFun2},
         {text: '拥塞比不达标次数',dataIndex: 'congrate',sortable: false,align: 'center',flex:1,renderer : linkFun3},
         {text: '其他原因比不达标次数',dataIndex: 'other',sortable: false,align: 'center',flex:1,renderer : linkFun4}
     ],
     bbar: Ext.create('Ext.components.BaseCommonPagingToolbar', {
      store: store
  }),
     animCollapse: false,
     renderTo: Ext.getBody()
 });

 

store.loadPage(1, {
      start : 0,
      limit : eastcom.pageSize
     });
     store.removeAll();
     store.getProxy().data = data[1];
     store.load();

你可能感兴趣的:(ext)