PDA

View Full Version : Ext.PagingToolbar - Request Paging YES, Grid NO



Jack_S
12 Feb 2011, 2:49 PM
Hello All,

I've come across with an interesting "bug?" which I have no clue on how to resolve. I've got a grid with a paging toolbar. I have the page size set to 50.

When the grid first loads, the grid displays the first 50 rows. This is OK.

When I click on the next page, I see the JSON response string from the server contains the next 50 rows, but the grid does not display them. It still show the first 50.

If I click on "last page", it will go to the last page and show the proper contents. If I go back 1 page, it does still shows the last page.

I may be missing a grid view refresh?

Thanks for any advise, assistance with the matter.

Jack

Here is how my paging tool bar is configured:



this.bbar = new Ext.PagingToolbar({
store: this.store
,displayInfo: true
,pageSize: 50
,displayMsg: 'Displaying items {0} - {1} of {2}'
,emptyMsg: 'No records to display'
});

Jack_S
12 Feb 2011, 3:25 PM
Found that at some point the output from ther truncated 1 comma, rendering the JSON invalid.