Page 1 of 1

[REACT] Tree grid with pagination

Posted: Tue Sep 13, 2022 9:33 am
by prashil

Hello bryntum,

In my project i implemented Tree grid, If i try to add server side pagination in that.
It shows error like below:


Re: [REACT] Tree grid with pagination

Posted: Tue Sep 13, 2022 9:46 am
by tasnim

Could you please provide us a runnable test case so we can reproduce and debug it?


Re: [REACT] Tree grid with pagination

Posted: Tue Sep 13, 2022 9:49 am
by prashil
const config={
treeFeature: true,
 store: {
      readUrl: "https://localhost:8000/member/data/pagination",
      pageParamName: "page",
      currentPage: 1,
      pageSize: 2,
    },
    bbar: {
      type: "pagingtoolbar",
    },
}

Re: [REACT] Tree grid with pagination

Posted: Tue Sep 13, 2022 12:16 pm
by tasnim

Unfortunately, the tree grid doesn't support pagination. But you can try loading children on demand instead. We have a demo on that. Here it is https://bryntum.com/examples/grid/treeloadondemand/

You can also find the code from the sources that you've downloaded. You can find it here examples/treeloadondemand

Good Luck :),
Tasnim


Re: [REACT] Tree grid with pagination

Posted: Mon Oct 03, 2022 9:10 am
by prashil

Can I use bryntum grid pagination component separately and can I handle onClick changes like previous page ,Next page, First page and last page from server.


Re: [REACT] Tree grid with pagination

Posted: Mon Oct 03, 2022 1:00 pm
by tasnim

Hi,
No, It's not possible to achieve.

Good Luck :),
Tasnim