Scroller. Too often server side call when scroll to top

Scroller. Too often server side call when scroll to top

eshangineshangin Posts: 3Questions: 0Answers: 0
edited September 2013 in Plug-ins
Hi. I use DataTables + Scroller + Server Side data in my project.
I have next problem:
When I scroll to bottom the data loads after I will make about 7 scrolls. But when I start scroll to top the data loads almost every one scroll.
Can't show the link to the page but I made a video of the problem and I have debug data for this datatable:
Video: http://screencast.com/t/3kiZD8uSF
Debug info: http://debug.datatables.net/ijozeq

We have next code in datatables.scroller.js:
if ( iScrollTop < this.s.redrawTop || iScrollTop > this.s.redrawBottom )
As I understand the difference between iScrollTop and this.s.redrawTop is very little (just about 100px) so with every scroll we call server to get new data... It is not good... How to fix this? Do we have any option for datatable which will help fix this problem?

Please, help!

Replies

  • eshangineshangin Posts: 3Questions: 0Answers: 0
    edited September 2013
    I found that we can increase Scroller's displayBuffer setting and all will be ok. So seems like this issue can be closed....
This discussion has been closed.