PageEvent

Represents the event triggered when a page change operation completes in the Data Grid component. Provides details about the completed navigation, including page transitions and record count. Used to handle post-navigation logic or UI updates in the pager component.

Props

The following table outlines the props for the PageEvent:

NameTypeDefaultDescription
currentPage
string | number
1

Specifies the page number after the navigation action is completed. Indicates the current page now displayed in the grid. Used to update the grid’s data and UI state in the pager component.

previousPage
string | number
1

Specifies the page number before the navigation action was completed. Provides context about the previous state for comparison or logging. Useful for tracking page transitions after navigation.

totalRecordsCount
number
0

Contains the total number of records in the grid’s data source. Used to calculate the total number of pages and update pagination information.