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

Async loading of level 4 node

1 Answer 32 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, 04:37 PM
My project is using keno angular tree list and it has 5 node levels. The requirement is to load data upto level 4 node on initial load. but when user expands level 4 node then fetch level 5 node data from server. how can we achieve this behavior in new kendo angular 7+ treelist?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 21 May 2020, 10:03 AM

Hello Monika,

The same answer was provided in a private support thread with the same topic, but I will also paste it here so other members of the community can benefit too:

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.

If you have further questions, could you please choose just one of the threads to continue the communication in, to avoid any potential misunderstanding, duplicate, or misleading answers? Thank you in advance.

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