ExtJS3的Store获取页索引递增值!

来源:互联网 发布:拍a发b淘宝会被降权吗 编辑:程序博客网 时间:2024/04/30 08:26
this.gbbar = new Ext.PagingToolbar();this.store = new Ext.data.JsonStore({url : "entrustAction.do" ,        baseParams : {           method : 'selectEntrustPageList' ,           start : 0        },        totalProperty : 'total' ,        root : 'results',        fields : [            "entrustId" ,             "entrustTitle" ,             "entrustEndDate" ,            "user" ,            "userTel" ,            "entrustCn" ,            "entruestusername" ,            "disponseid" ,            "disponsecn" ,            "status"        ] });this.gbbar.bind(this.store); //此处是关键点,使用PagingToolbar的cursor属性获取页的递增值! alert(this.gbbar.cursor);

注意:只有Store与PagingToolbar进行绑定了才可以使用以下方式获取页的索引递增值!

 

0 0