PDA

View Full Version : Ext.PagingToolbar and refresh's handler



primolan
18 Apr 2011, 11:48 AM
Hello!

Using the Ext.PagingToolbar component I realized that the refresh button handler did not recover all the parameters sent in the first loading of the store. To get around that just do a simple override. Here's the code.



Ext.override(Ext.PagingToolbar, {
doLoad : function(start){
var o = {}, pn = this.getParams();
o[pn.start] = start;
o[pn.limit] = this.pageSize;
Ext.applyIf(o, this.store.lastOptions.params);
if(this.fireEvent('beforechange', this, o) !== false){
this.store.load({params:o});
}
}
});


Thanks!

bee
13 Jul 2011, 6:15 AM
Where do I need to use this code ? in paging plugin ?

pardhu
20 Feb 2012, 11:14 PM
Where do I need to use this code ? in paging plugin ?