-
2 May 2011 10:53 AM #1
Infinite scrolling does not update currentPage property
Infinite scrolling does not update currentPage property
Go to this infinite scrolling example, scroll down (at least to post 201), click at the column header "Last Post" to (remote) sort and watch the first column (post number). The view jumps always back to the first page with post #1, independent of the scroll bar state.
The fix for me was to insert the line
me.currentPage = page;
to the function "prefetchPage" in the file src/data/Store.js:
I don't know if this the right fix, but it works for me.PHP Code:prefetchPage: function(page, options) {
var me = this,
pageSize = me.pageSize,
start = (page - 1) * me.pageSize,
end = start + pageSize;
if (Ext.Array.indexOf(me.pagesRequested, page) === -1 && !me.rangeSatisfied(start, end)) {
options = options || {};
me.currentPage = page;
me.pagesRequested.push(page);
Ext.applyIf(options, {
page : page,
start: start,
limit: pageSize,
callback: me.onWaitForGuarantee,
scope: me
});
me.prefetch(options);
}
},
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Does the infinite scrolling grid remember row selections?
By dukeyboy in forum Ext: DiscussionReplies: 6Last Post: 11 Feb 2013, 12:01 PM -
[CLOSED]PagingScroller getPageData - currentPage appears to never update
By mniland in forum Ext:BugsReplies: 1Last Post: 12 Apr 2011, 2:02 PM -
Can the infinite grid do downwards only, cumulative scrolling?
By dukeyboy in forum Ext: DiscussionReplies: 0Last Post: 31 Mar 2011, 11:17 AM -
[CLOSED]Infinite Scrolling Example Bug
By wsi in forum Ext:BugsReplies: 1Last Post: 31 Mar 2011, 10:37 AM


Reply With Quote