New to KendoReact? Start a free 30-day trial
Determine which scrollbar have triggered the onPageChange event with virtual scrolling in the Grid
Environment
Product Version | 5.9.0 |
Product | Progress® 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 ...