Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/422.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript ExtJs使用额外参数重新加载网格_Javascript_Extjs - Fatal编程技术网

Javascript ExtJs使用额外参数重新加载网格

Javascript ExtJs使用额外参数重新加载网格,javascript,extjs,Javascript,Extjs,使用分页栏刷新加载网格存储时,代理参数丢失 如何为代理提供参数 我试过了 Ext.apply(commandGrid.store.getProxy().extraParams, { data: me.selectedItem, }); 还有这个 commandGrid.store.load( { params:{data: me.selectedItem}, scope: this, callback: function(recor

使用分页栏刷新加载网格存储时,代理参数丢失

如何为代理提供参数

我试过了

Ext.apply(commandGrid.store.getProxy().extraParams, {
    data: me.selectedItem,
});
还有这个

commandGrid.store.load(
     { params:{data: me.selectedItem},
           scope: this,
           callback: function(records, operation, success) {
                console.log(success);
            }
});
如何在加载存储之前设置参数?

在存储发生时,您应该这样做


如果您坚持只为重新加载分页工具栏而执行此操作,请替代分页工具栏的方法。

谢谢您的快速回复。工作正常。Hi rixo,我也想为Extjs3.4 grid执行此操作,没有其他选项,请给我一些建议。