日期:2014-05-16 浏览次数:20385 次
//创建数据存储对象 var createStore = function( store,treeId){ var ds=new Ext.data.Store({ proxy:createProxy(treeId), reader:new Ext.data.JsonReader({ totalProperty:'totalProperty', root:'root'}, store), paramNames:{ start : "start", limit : "limit", sort : "sort" } }); return ds; } //创建表格底部工具条 var createBBar = function(tempStore,bbarItems){ var bbar = new Ext.PagingToolbar({ pageSize:18, store: tempStore, displayInfo:true, items:bbarItems, displayMsg:'显示第{0}条到{1}条记录,一共{2}条', emptyMsg:"没有记录" }) addClickEventBybbar(bbar); return bbar; }