This is a migrated thread and some comments may be shown as answers.

Server side paging in TreeList

1 Answer 544 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Yohannes
Top achievements
Rank 1
Yohannes asked on 16 Oct 2020, 02:36 PM
Does TreeList supports server side paging? If not, how to load large data, in ten thousands?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 Oct 2020, 09:10 AM

Hello Yohannes,

The TreeList supports server paging, however, our server operations service does not support it (ToTreeDataSourceResult method). In other words, if your server is capable of returning the hierarchical data paged, the Treelist will successfully display the returned data. Our ToTreeDataSourceResult method does not support server paging as it internally works with IQueryable. This means that all operations (paging, sorting, filtering) are queries that are executed on the database level. However, to build the hierarchy, you have to fetch all items from the database and then in the memory create the actual hierarchical structure, which means that the paging queries are no longer applicable.

I can suggest significantly improving the TreeList performance by loading the records' children on demand, as shown in the remote binding demo:

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TreeList
Asked by
Yohannes
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or