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

Virtualization and smooth scrolling in TreeView

3 Answers 464 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 10 Dec 2019, 10:27 AM

Is it possible to have both virtualization and smooth scrolling in TreeView. Application freezes when Treeview contains more items(nearly 500) and virtualized when scrolling. TreeView item template has more controls. If we disable virtualization, Loading Treeview takes more time (in minutes) and sometimes application crashes.

Need solution to have both virtualization(for fast initial loading) and smooth scrolling.

 

3 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 13 Dec 2019, 08:03 AM

Hello Uma,

What you can try to increase the performance of the control is to use Load On-Demand functionality. In a few words on expanding an item, the LoadOnDemand event is fired, and you can load the child items in the event handler. This way only the child items of the expanded item will be loaded. Give this functionality a try and let me know if it works for you.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Uma
Top achievements
Rank 1
answered on 12 Feb 2020, 10:03 AM

Hi Dinko,

Thanks for your reply. In our case, treeviewitem should be expanded by default. Your suggestion will not suite.

0
Dinko | Tech Support Engineer
Telerik team
answered on 17 Feb 2020, 08:01 AM

Hello Uma,

Is it possible to share the custom template of the RadTreeViewItem so I can have a better look at your set-up? You can find a sample project attached to this reply in which the RadTreeView is populated with 500 items while each item has 500 items. You can modify this project to mimic your implementation.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TreeView
Asked by
Uma
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Uma
Top achievements
Rank 1
Share this question
or