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

[Solved] Tree loading slow with Action property

0 Answers 8 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Krishnam
Top achievements
Rank 1
Krishnam asked on 10 May 2013, 09:43 AM
Hi,

I am trying to load tree with nearly 200 nodes. But it's taking too much time to bind the tree control. See my code below, if i commented "item.ActionName ", "item.ControllerName" properties, then it's rendering very fast.

Can you please provide you suggestion. Except load on demand.

Html.Telerik().TreeView()

.Name(

 

"trvLeftMenuItems")

.BindTo(Model, mappings =>

{

mappings.For<

 

TreeViewItem>(binding => binding

.ItemDataBound((item, treeViewItem) =>

{

item.Text = treeViewItem.Text;

item.Value = treeViewItem.Value;

item.ActionName = "Index";
item.ControllerName = "Home";

 

.Children(treeViewItem => treeViewItem.Items));

 

})


Regards,
Krishnamraju

Tags
TreeView
Asked by
Krishnam
Top achievements
Rank 1
Share this question
or