Last Updated: 06 Sep 2022 14:55 by Vinoth
Created on: 06 Sep 2022 14:55
Category: Grid
Type: Bug Report
The event property of Grid's pageChange event handler is not always defined

Describe the bug
When having a scenario of Native Grid with a paging functionality, the pageChange event is being triggered when there is an interaction with the UI of the Pager.

When the user selects the number of rows per page, by choosing this value from a DropDownList, the object available in the event handler of the pageChange event has a value for its event property.

When the pageChange event is triggered by a change in the pages (1, 2, 3, etc.) the mentioned above event property has a value of undefined inside the event handler.

To Reproduce

  1. Open this StackBlitz example
  2. Change the number of items per page to 20.
  3. Change the Grid page by using the page numbers
  4. Check the browser's console

Expected behavior
The event prop should be defined no matter which element is triggering the pageChange event.