Hi all,
I am using the pagingtoolbar plugin in my grid. The grid is loaded correctly but when I press next to go to the next page, the grid becomes empty! What could be the reason?
Thanks,
Joud
Hi all,
I am using the pagingtoolbar plugin in my grid. The grid is loaded correctly but when I press next to go to the next page, the grid becomes empty! What could be the reason?
Thanks,
Joud
Hi, Joud. I would recommended you to check, that your proxy using right `pageParam`, `startParam` and `limitParam`.
Hello Grigority,
In the PagingToolbar plugin here, it's mentioned to define the pageSize only (no pageParam). I tried it on the store (in store.load):
store.load({
params: {
start: 0,
limit: 20
}
});
But still the same problem! am using JSON store with memory proxy if this helps. Maybe the problem is in the memory proxy?
Thanks,
Joud
Can you provide fiddle or code exerpt with grid and store definition.
Here's a simulation on fiddle:
https://fiddle.sencha.com/#view/editor&fiddle/2c6b
As I see all the records are loaded from the beginning, maybe that's why clicking next clears the grid...but why all the records are loaded from the beginning while paging params are defined!?
Here is corrected example with working paging: https://fiddle.sencha.com/#view/editor&fiddle/2c6e Problem was in invalid store definition.
Thank you Grigoriy but I already generated the code with Sencha Architect, so it cannot be wrong. I just took pieces of it and modified it to work on fiddle. The problem in not in loading the records, the records are already loaded in my application (actually all the records are loaded from the beginning) but the issue is in the paging plugin. Did I miss something in the paging definition?
Another note: I create an instance of the store, load data to it, and bind it to the grid on the load of the application. Does this affect in any way? Do I need to add something extra?
The number of pages in the toolbar are correct but the records are loaded completely from the beginning! :/
Please, look at fiddle that i provided above. This is corrected code with working paging. If you provided right code, at fiddle, your paging was setted right.