ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: kiwon34 on February 13, 2018, 12:13:39 pm

Title: How do I know that I reached the end of scroll?
Post by: kiwon34 on February 13, 2018, 12:13:39 pm
Hello,

I want to know when I scroll vertically and reach the bottom, is there any event that fires so I can know that it has reached the end?
I know that event is firing during the scroll is moving, but I don't know when it reaches the bottom.  I remember that this kind of event existed on version 4.x.

Thank you.
Title: Re: How do I know that I reached the end of scroll?
Post by: paramvir on February 13, 2018, 10:43:00 pm
You may use this method https://paramquery.com/pro/api#method-getViewPortIndx inside scroll event

and compare finalV with last visible rowIndx. If both are equal, then reached the end of scroll.