PDA

View Full Version : how to use store.loadPage



zloi
21 Aug 2013, 12:40 AM
Hi all! I am using Extjs 4.2.1.883 and found that buffered store method store.loadPage(n) where n > 2 causes error



Uncaught TypeError: Cannot read property 'length' of undefined ext-all-dev.js:135786



??n I use store.loadPage whis page number more then 2 or not?
as an example you can look at infinite-scroll-grid-tuner and just replace page in this piece of code
if (buffered) {
// Load the first page. It will be diverted through the prefetch buffer.
store.loadPage(1);
} else {
store.load({
limit: rowCount
});
}
with page number more than 2.

thanks.

annalinux
21 Aug 2013, 5:32 PM
store.loadPage(pageIndex);

zloi
21 Aug 2013, 7:36 PM
store.loadPage(pageIndex);
As I said, when trying to use store.loadPage(9) there is an error/

Gary Schlosberg
23 Aug 2013, 3:46 PM
Does this happen with older versions of ExtJS? If you suspect this is a bug, please post a test case that reproduces the issue I'll file a bug. Thanks.