I have a list, how can I do something like what pagingInfo does? I want to pass in batchNumber and batchSize and get the part from the list.
The list is not queried from record, it is from an api response, but the api response was not paged. I was blocked when I tried to create a record type using this api, so I was thinking maybe I can page the response in recordDataSource file. Is there any other ways that I can do this without changing the api?
Discussion posts and replies are publicly visible
Option 1: It is highly recommended to implement pagination at the API level if it fits your use case. This approach would be optimal.
Option 2: Consider using the datasubset function to create a subset of the entire dataset you received, which can then be utilized in the grid.