ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: kjvjung on September 05, 2017, 07:14:49 pm
-
Hello.
New page call by scroll down in infinite_scroll: What do you know?
I will explain in detail.
postData: function () {
debugger; // What can I tell if it was called by scroll down?
return {
pq_curpage: pqIS.requestPage,
pq_rpp: pqIS.rpp
};
},
I see 100 lines at first, and when I scroll down, I see 100 lines again.
What are the characteristics of this time? How do I know from the debugger above?
When you scroll down, postData is called. What variables can I see at this time?
For example, instead of debugger, console.log (....)
url : https://paramquery.com/pro/demos/infinite_scroll
-
That's right, postData is called whenever more rows are requested from remote server.
beforeTableView -> if more rows are required -> this.refreshDataAndView(); -> postData()
-
thank you ;D :) ;)