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

Load on Demand in Treelist

1 Answer 237 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Monika
Top achievements
Rank 1
Monika asked on 19 May 2020, 10:10 PM

My application is using Treelist and we have requirement to load level 4 node on demand.

because of it having maximum amount of data. so in order to boost performance we want to do async loading of level 4 node.

how can i achieve this in kendo angular treelist?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 21 May 2020, 07:50 AM

Hi Monika,

The TreeList relies on hasChildren and fetchChildren callbacks provided by the developer to load each next "level" of data for the expanded node:

https://www.telerik.com/kendo-angular-ui/components/treelist/data-binding/

https://www.telerik.com/kendo-angular-ui/components/treelist/data-binding/remote-data/

This means that all, but the root nodes are loaded on demand, and only the expanded items and their direct children are rendered in the DOM, regardless of whether the actual data is available on the client or not. So with both local and remote data, the TreeList is optimized, and will render only the nodes that have to be visible.

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
TreeList
Asked by
Monika
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or