Page 1 of 1

[REACT] AJAX Store > Transform Data

Posted: Fri May 26, 2023 7:04 am
by athan

I'm trying to implement pagination https://bryntum.com/products/grid/examples/paged/ but it seem requires an AJAX Store to pull in the data.
However, I've read in some threads that data transformation isn't possible yet.

So what's the alternate way to use the pagination, then?


Re: [REACT] AJAX Store > Transform Data

Posted: Fri May 26, 2023 11:48 am
by alex.l

Hi athan,

Pagination is not supported for local stores. It is not easy to implement, so I cannot post you a code snippet, but I've opened a feature request for that here https://github.com/bryntum/support/issues/6860
You can subscribe on ticket updates to be notified when it's ready.


Re: [REACT] AJAX Store > Transform Data

Posted: Tue May 30, 2023 11:22 am
by athan

That is unfortunate, but thanks.

I have replicated the pagination by manually attaching handlers to the buttons to refetch data. However, I do get error when re-rendering the grid component. Would you know what triggers this and possibly an appropriate solution in rebuilding the grid?


Re: [REACT] AJAX Store > Transform Data

Posted: Tue May 30, 2023 1:21 pm
by alex.l

However, I do get error when re-rendering the grid component

No, nothing familiar I am afraid.
It is not about buttons for pagination, that looks like more common problem. Make sure you don't have any warning before this error. Such as attempt to modify static configs or something similar. Btw there should be no need to re-render grid to load new dataset, just manage store data. But that depends on your app, I have no idea what exactly you did before got that error.