extjs pagetoolbar动态绑定参数

  今天项目中遇到这么一个问题,我有上下两个grid,每当点击上面grid的record时,下面会动态刷新为上方grid记录的的详细信息,但是因为下面grid(称为B吧)的pagetoolbar的存在,每次点击B的刷新,则就会讲上面grid(称为A)的所有记录的所有信息展示出来,在点击B的刷新按钮是,B的story的extraParams并不起作用。我就把要传的参数直接绑定到了url上。

	this.store = new Ext.data.JsonStore({
							autoLoad : {start : 0 ,limit : basicConstant.LIMIT},
//							pageSize : basicConstant.LIMIT,
							remoteSort : true,
							grid : this,
							loadFlag : false,
							proxy : {
								type : 'ajax',
								url : "xmgl/plan-schedule-manage!page.action",
								extraParams : this._baseParam,
								reader : {
									type : 'json',
									root : 'rows',
									totalProperty : "totalCount"
								}
							},
							model : 'PlanSchedule',
								listeners : {
							'beforeload' : {
								fn : function(_s, _op, _e) {
									if (!_s.loadFlag)
									{
										return _s.loadFlag;
									}
//									this._baseParam.parentGuid = this._grid.getSelectionModel()
//											.getSelection()[0].get("guId");
									this.store.proxy.url = 'xmgl/plan-schedule-manage!page.action?parentGuid='+this._grid.getSelectionModel()
											.getSelection()[0].get("guId");
										
								},
								scope : this
							}
						}
						});
						
						


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值