I implemented virtual scrolling on my grid using the following post as a guide:
http://www.jqwidgets.com/jqxgrid-virtual-scrolling-with-php-and-mysql/
Everything is working fine but I have a question on how virtual scrolling actually works. I put the following js code “console.log(params);” in the rendergridrows function to see when it was triggered and what the params were. A sample output below:
Object {startindex: 0, endindex: 19, data: Array[20]} – initial load
Object {startindex: 16, endindex: 35, data: Array[36]} – page down
Object {startindex: 0, endindex: 19, data: Array[20]} – followed by a page up
This shows me that it makes a call for what it technically has already loaded (rows 0-19). Is this by design? If so, is there a way to turn it off to avoid making calls for data it has already loaded?
Thanks