This question is locked. New answers and comments are not allowed.
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.
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