View Full Version : Problem with pagingToolbar on the grid

30 May 2011, 6:37 AM

I'm trying to use the pagingtoolbar for my grid, because I have many data to load in my grid and I want load, 20 to 20 my data.

My data are from JSON.

And I load my data, with store.loadData(data).
My JSON send 20 rows, and a 'nbRowsTotal' = 680

But, in the bbar, the number of pages is 1/1.

Here is my code :

var store = new Ext.data.JsonStore({
storeId: 'idStore',
fields: headers,
reader : new Ext.data.JsonReader( {
root : 'data',
totalProperty : 'nbRowsTotal'
totalProperty: 'nbRowsTotal'

var bbar = new Ext.PagingToolbar({
store: store,
id: 'bbar_'+this.screenNum,
pageSize: 20,
items: [{
pressed: false,
text: 'Add'
'-', {
pressed: false,
text: 'Remove'


I don't have Proxy for my grid, is it a problem ?

thanks, and sorry for my bad english...