漫天 flurrying

漫天 Asp.net C# flurrying 程序员 SEO asp java jsp javascript
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

ExtJS 工具栏 分页事件 参数

Posted on 2010-03-05 09:25  漫天  阅读(883)  评论(0编辑  收藏  举报

例如:载入第一页的时候

代码:

store.load({params:{start:0,limit:pageSize,Keyword:Ext.getCmp('input_name').getValue()}});

 

当单击下一页(上一页)时带参数

doLoad : function(start){
          record_start = start;
             var o = {}, pn = this.paramNames;
             o[pn.start] = start;
             o[pn.limit] = this.pageSize;
             var Keyword=Ext.getCmp('input_name').getValue(); //获取参数

             o['Keyword'] = Keyword ;//参数写入

             this.store.load({params:o});//载入
        }