PDA

View Full Version : PagingToolbar page number problem



Zimi
11 Feb 2015, 8:16 AM
Hi,

I have the following problem: I have a store, what is not loaded (autoLoad: false). I added the store to a grid, what have a PagingToolbar (here is set the store too). I have an event (rowclick on an other grid), what load the store (grid.getStore().load();). And now come my problem. The page number on the PagingToolbar stay "1" (but I have 500 item). If I click to the refresh button on the PagingToolbar it's working fine, I get the correct pagenumber. (and if set the autoLoad:true, then it's okay too).

What is the problem?

Zimi
12 Feb 2015, 12:45 AM
Problem solved, there was a store init problem. With this working fine.

initComponent: function(){
var store = Ext.create('store.test');
this.store = store;
this.bbar.store = this.store;
this.callParent();
},