PDA

View Full Version : New bug with buffered grid



sm00th1980@mail.ru
25 Jul 2011, 1:57 AM
Hello everyone!

I found a new bug.
Version: ExtJS 4.0.2a

Description:
When I use buffered grid and filter in same time. On first load when filter is not enabled(it's just null) and then I move on last page => I receive error in console:
"Uncaught TypeError: Cannot read property 'params' of undefined" in file FiltersFeature.js on string 493.

Solution:

replace in file:
ext/examples/ux/grid/FiltersFeature.js


onBeforeLoad : function (store, options) {
options.params = options.params || {};

this.cleanParams(options.params);
var params = this.buildQuery(this.getFilterData());
Ext.apply(options.params, params);
},



on this:



onBeforeLoad : function (store, options) {
if (options !== undefined) {
options.params = options.params || {};

this.cleanParams(options.params);
var params = this.buildQuery(this.getFilterData());
Ext.apply(options.params, params);
} //if
},

craigsimons
21 Oct 2011, 8:38 AM
The same error occurs in my implementation as well. The fix suggested solves my problem.

edspencer
21 Oct 2011, 12:43 PM
Have you tried it with 4.0.7?

craigsimons
21 Oct 2011, 1:05 PM
Yes, I was using 4.0.2a. I moved to 4.0.7 yesterday and got the same behaviour.