DataGrid ReadData not handling pagination properly #5115
Unanswered
mdmontesinos
asked this question in
Q&A
Replies: 1 comment
-
I'm converting this to a gh issue. #5116 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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):
Beta Was this translation helpful? Give feedback.
All reactions