-
14 Feb 2013 10:20 AM #1
[4.2.0.489] buffered store, loading not completed
[4.2.0.489] buffered store, loading not completed
If in 'Infifnite Grid' example (see Ext JS 4.2.0 - Sencha Docs ) set for the store
pageSize: 10
the loading is not completed.
To avoid this:
Code:loadToPrefetch: function (options) { ... if ((dataSetSize = me.getTotalCount())) { // Wait for the requested range to become available in the page map me.data.on('pageAdded', waitForRequestedRange); // As soon as we have the size of the dataset, ensure we are not waiting for more than can ever arrive, // And make sure we never ask for pages beyond the end of the dataset. loadEndIdx = Math.min(loadEndIdx, dataSetSize - 1); endPage = me.getPageFromRecordIndex(loadEndIdx); if (me.data.maxSize < endPage - startPage + 1) { me.data.maxSize = endPage - startPage + 1; } for (i = startPage + 1; i <= endPage; ++i) { me.prefetchPage(i, prefetchOptions); } ... }
-
14 Feb 2013 6:21 PM #2
In this case you'll need to alter the purgePageCount.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote