I want to capture the scroll-end event of the grid to fire my custom load more results functionality. It works fine on desktop's after i attach the scroll event to k-grid-content div. But on mobile browsers the scroll event does not get fired.
Appreciate your help in advance
3 Answers, 1 is accepted
0
Dimo
Telerik team
answered on 10 Dec 2014, 10:06 AM
Hello Puma,
On touch devices the Grid uses a Kendo UI Mobile Scroller widget, so you need to use its scroll event handler.
Thanks for the reply.
I actually tried that, but it seems to be very sensitive.... for example, when i scroll once, this event gets fired twice or thrice sometimes.
Also, scrollTop of the mobilescroller gives me negative zero value every now and then.
0
Dimo
Telerik team
answered on 12 Dec 2014, 09:42 AM
Hello Puma,
Well, yes, the scroll event fires continuously during scrolling, so you will need to get the current position from the event arguments, compare it with the data table's height and decide whether to load new data items.