New to KendoReactStart a free 30-day trial

Determine which scrollbar have triggered the onPageChange event with virtual scrolling in the Grid

Environment

Product Version5.9.0
ProductProgress® KendoReact Grid

Description

When virtual scrolling is enabled for the Grid, the onPageChange event fires even if the horizontal scrollbar is moved. How can I determine if the onPageChange is triggered from the vertical scrollbar?

Solution

The onPageChange event contains the nativeEvent and storing its target scrollTop and scrollLeft values can be used for determining which scrollbar have triggered the event.

Following is an example demonstrating this approach:

Change Theme
Theme
Loading ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support