PDA

View Full Version : Pagination problem



same
1 Jun 2011, 5:31 AM
Hi,

I'm using the pagingToolbar for my grid, and it's very usefull, but I have a problem with the "totalProperty" on my grid.

When I create my grid, it is empty. And after, I load the data (with the totalProperty defined).

But the pagination is 1/1 with 20 on "pageSize" in the toolbar and 620 on totalProperty :-/

And now, if I create my grid, and I load in the same time the data, with the same data, the pagination works fine.

I don't understand what is the problem ?
Can you help me ?

thanks

friend
1 Jun 2011, 5:44 AM
When you load your store, are you passing the initial start and limit parameters?



store.load({
params: {
start: 0,
limit: 20
}
});

same
1 Jun 2011, 5:52 AM
Yes, my params are :


store.load({start:0, limit:this.pageSize, fieldName:this.params['fieldName'], screenNum:this.params[Enum_WidgetAttribute.SCREENNUM], command: 'updateGrid'});

same
1 Jun 2011, 6:18 AM
Any idea ?

skirtle
1 Jun 2011, 6:32 AM
Could you post the relevant code for the case that doesn't work, including some example data?