this.store.on('beforeload', function()
{
Ext.apply(Ext.getCmp("propTypeGrid").store.baseParams, { Parameter 1: '111', Parameter 2: '111' });
});
But in 3.0, parameters cannot be added like this, so I found a solution on the ExtJs official forum:
this.store.on('beforeload', function(store,options)
{
var new_params={parameter 1: '111', parameter 2: ' 111' };
Ext.apply(options.params,new_params);
});
Finally I found that Ext has been updated to 3.1.1 and has been fixed in 3.1.1 This bug has been fixed
If you are currently using 3.0 or 3.1, you can upgrade to 3.1.1 if conditions permit. (This bug has not been fixed in 3.1)
If there are no conditions, just use the above method.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn