DataGrid ReadData not handling pagination properly #5116
Labels
Area: DataGrid
Priority: High ⚡
Type: Possible Bug
Needs to investigate more to see if it's an actual bug.
Milestone
Discussed in #5115
Originally posted by mdmontesinos October 28, 2023
DataGrid with ReadData mode does not handle correctly pagination.
I have a PageSize of 1, 2 elements, and I am in page 2, everything's correct:
However, when changing to a PageSize of 5, the ReadData event is not triggered so the data source is not updated from the API, even if the DataGrid does change its internal value to 5 and shows that there's no previous page.
The last console.log I get is "PageSize: 1, CurrentPage: 2", when the ReadData event should be triggered with "PageSize: 5, CurrentPage: 1".
I'm using Tailwind provider, if it's any help.
Here's the code for it (the data source is just an API with simple pagination mecanism):
The text was updated successfully, but these errors were encountered: