Sencha Premium User
Infinite scrolling problems after reloading the remote store
I have been working with infinite scrolling for a while with version 4.2.1 and I have noticed some strange behaviour when I perform store.reload() using a remote store. The errors I find are sometimes "PageMap asked for range which it does not have" and other times just get blocked with the icon loading and you can not continue working, the thing is that this happen randomly.
I migrated to version 188.8.131.526 and the problem about the "PageMap asked for range which it does not have" has almost desapeared but I found another problems which are when you scroll quickly to the last page and invokes the store.reload() and the result from the server has changed for example different total count because there are serveral new rows, in this case I get sometimes "Uncaught TypeError: Cannot read property 'length' of undefined" and other times it just loads correctly but scroll to the first page.
I wonder if someone in the community has encountered the same problems because for me I can not trust on the store.reload() method and if there is a workaround to avoid using this method and loads the correct pages in a buffered stored with infinite scrolling.
Thank in advance.
Tags for this Thread