PDA

View Full Version : [CLOSED] Continuous Scrolling - Elevate post from Community forum



schimkem
Oct 17, 2012, 1:13 PM
This is a request to get some feedback on the below issue with Infinite Scrolling \ AJAX requests. I know that one wasn't posted in the Premium Help forum, but in case it helps to elevate, we are having the same issue and posting it here as well.

We have an upcomming 1.0 release of our site at the beginning of November and would rather not have to pull this functionality if at all possible. Please advise of a potential fix \ timeline. Thanks very much!

Infinite scrolling in GridView POST to server 5 times for each scroll (http://forums.ext.net/showthread.php?21548-Infinite-scrolling-in-GridView-POST-to-server-5-times-for-each-scroll)

Vladimir
Oct 17, 2012, 1:42 PM
Well, such behaviour depends from store settings
First, I recommend to play with infinite scroll tuner
http://examples2.ext.net/#/GridPanel/Infinite_Scrolling/Tuner/

It is better to use sample from SVN (2.1 branch) because infinite scroll is improved in 2.1
About few requests, store makes few requests to load (cache) few pages for comfortable scrolling (avoid requests during small scrolling)

You can change it by using pageSize, trailingBufferZone and leadingBufferZone options of Store
For example try this


<ext:Store
runat="server"
Buffered="true"
PageSize="200"
TrailingBufferZone="10"
LeadingBufferZone="10"
OnReadData="Store_ReadData">