Jun 20, 2010, 3:26 AM
GridPanel Paging
Hi !
I use a static ajax method to return a structure "data" like this :
But when I do myStore.getTotalCount() = 10 (the exact number of the returned rows)
So the paging does not work. It is blocked to the 10 first rows of the first page.
I don't see the other pages...
How can I resolve my problem ?
Thanks...
I use a static ajax method to return a structure "data" like this :
data.totalCount = xx // The max number of rows returned by my query (100 for example)
data.results= xx // the exact rows (sorted and limited by the limit value) (10 for example)
On the success method I use the loadData of the store to bind the data like this : var data = eval('data');
myStore.loadData(data);
I see in javascript the value of myStore.totalLength = 100 (for example)But when I do myStore.getTotalCount() = 10 (the exact number of the returned rows)
So the paging does not work. It is blocked to the 10 first rows of the first page.
I don't see the other pages...
How can I resolve my problem ?
Thanks...