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

Treeview loading slow

1 Answer 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chanchal
Top achievements
Rank 1
Chanchal asked on 24 Jul 2014, 03:42 AM
Hi, 

I am using two kendo tree views in my screen. The trees are taking long to load.  Each of the tree has around 200 nodes with checkbox. I added .LoadOnDemand(true), but not of much help. 

I am populating treeviews models in C# and passing it to the razor views. I am attaching my treeview's razor files (CasTradeOrgnTreePartial.cshtml and CasTradeDestTreePartial.cshtml) and C# procedure (populate_tree_model_C#_procedure.cs) . 

Please advise, how to speed up the tree loading time.

Regards, 

Manoj

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 28 Jul 2014, 04:49 AM
Hello Manoj,

The current approach uses server binding (passing the Model to the BindTo method) which loads all nodes at once despite that LoadOnDemand is enabled. I would recommend using Ajax binding, which will enable the TreeView widgets to load only the expanded node's children, thus reducing the load times to some extent.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Chanchal
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or