Hi,

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 :

Code:
        var store = new Ext.data.JsonStore({
            storeId: 'idStore',
            fields: headers,
            reader : new Ext.data.JsonReader( {
                root : 'data',
                totalProperty : 'nbRowsTotal'
            }),
            totalProperty: 'nbRowsTotal'
        });
Code:
            var bbar = new Ext.PagingToolbar({
                store: store,
                id: 'bbar_'+this.screenNum,
                pageSize: 20,
                items: [{
                        pressed: false,
                        text: 'Add'
                    },
                    '-', {
                        pressed: false,
                        text: 'Remove'
                    }
                ]
            });
Code:
store.loadData(data);
I don't have Proxy for my grid, is it a problem ?

thanks, and sorry for my bad english...