Our blazing fast Grid component built with pure JavaScript


Post 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?


Post 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.

All the best,
Alex


Post 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?

Attachments
Screenshot 2023-05-30 at 5.17.09 PM.png
Screenshot 2023-05-30 at 5.17.09 PM.png (391.79 KiB) Viewed 124 times

Post 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.

All the best,
Alex


Post Reply