• What is KendoReact
  • Getting Started
  • Server Components
  • Components
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

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

Environment

Product Version5.9.0
ProductProgress® KendoReact

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:

Example
View Source
Change Theme:

In this article

Not finding the help you need?