DropDownTree Virtualization

1 Answer 35 Views
DropDownTree
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Lee asked on 14 Aug 2024, 08:26 PM
Does the DropDownTree support virtualization and valuemappers like the DropDownList does? I have a tree with 500 nested items on 3 levels (parent, child, grandchild). 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 19 Aug 2024, 11:08 AM

Hello Lee,

Currently, virtualization for the DropDownTree is not supported. Value Mapper function, however, has been available since R2 2024. Here is the item with more information:

https://github.com/telerik/kendo-ui-core/issues/4468

Regards,
Nikolay
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
commented on 19 Aug 2024, 04:44 PM | edited

Thank you. How would you suggest using the DropDownTree in this situation where I have so many options (over 2000 top level parents)? My API is returning all of the options on page load. The example doesn't seem to work either as all of the options say, "undefined". 

https://docs.telerik.com/kendo-ui/api/javascript/ui/dropdowntree/configuration/loadondemand.valuemapper

Martin
Telerik team
commented on 22 Aug 2024, 07:33 AM

Hello, Lee,

Please refer to this example, we will update the one in the API reference accordingly. If you inspect the requests in the browser console, you will see only the data which must be returned in order to load the values you wish. For example, currently the valueMapper is configured to reach an item with EmployeeId 8. That means that the DropDownTree will fetch all the data preceding it, but not the entire set of data. You will see that if you open the DropDownTree and expand the Andrew Fuller item (which is already fetched from the remote), if you expand the Steven Buchan item, a request will be made to fetch its child items. Let me know if that makes sense.

Tags
DropDownTree
Asked by
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Answers by
Nikolay
Telerik team
Share this question
or