Server-side pagination using TreeList

1 Answer 206 Views
TreeList
Arttu
Top achievements
Rank 1
Arttu asked on 04 Sep 2023, 02:26 PM

Hello,

Does the TreeList component support server-side pagination?

It seems that the only way to use pagination with the TreeList component is to fetch all the parent nodes from the remote resource and then the component can apply paging to them in memory. Is this correct, or can the parent nodes be paginated server-side in a similar fashion to items with the Grid component? And if so, how would one go about doing this?

Our use case involves a two-level hierarchy, where there may be tens of thousands of parent nodes, so only being able to fetch the child nodes on demand isn't quite enough to limit the amount of data loaded at once, hence our need to paginate the parent nodes.

Thank you.


1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 07 Sep 2023, 07:09 AM

Hi Arttu,

The paging of the TreeList is handled differently than the Grid. You are correct that the paging is handled by the component when the data is available in memory. This also means that there isn't a specific way to page the data from the remote server.

I understand that this behavior may not be ideal for a large number of parent nodes and what I can suggest is implementing the Grid component with the detailed template that will contain a Grid that will load all the children of the parent.

I hope this helps.

Regards,
Yanmario
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
TreeList
Asked by
Arttu
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or