PrimeReact DataTable paginator is not working properly. #1124
-
|
When I tried using the props passed through the Datatable paginator it didn't work. Also, we don't have the onPageChange with the DataTable. Framework:- Next <DataTable paginator rows={5} totalRecords={100} value={data} stripedRows />Here I wanted to make paginated API calls, and on-page changes rather than getting all the data simultaneously. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Hello , To make paginated API calls using PrimeReact's DataTable component, you can utilize the onPage prop. This prop allows you to define a callback function that gets triggered when the pagination state changes, enabling you to update your data or make API calls accordingly Regards. |
Beta Was this translation helpful? Give feedback.
-
|
It works after adding <DataTable paginator rows={5} totalRecords={100} lazy value={data} stripedRows /> |
Beta Was this translation helpful? Give feedback.
It works after adding
lazykeyword.