ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: motoguru on February 25, 2014, 02:28:55 am
-
Hello again :)
Bored of my questions yet? :)
Is there any method of handling event when user scrolled to the bottom of grid? I want to add some remote data to local data then. (flexheight: false, pagination: disabled, all rows on page, like infinite scroll on free version Demo)
-
First you need to get reference to vertical scroll bar.
Then listen to scroll event
http://paramquery.com/pro/api/scrollbar#event-scroll
cur_pos and num_eles would indicate the current position of scrollbar. When cur_pos is nearing num_eles, it indicates that it's near the bottom and you can add chunks of rows to dataModel.data at that moment and refreshView.
-
Great stuff. Thanks