This question is locked. New answers and comments are not allowed.
Hi, I try to set my own content for a tree view using .Content and a partial view, but when it loads the tree is appears duplicated, first appear the tree with my template, and under that a treeview empty, any ideas?
View:
Partial view:
View:
@model IEnumerable<
ImportOrder
>
@( Html.Telerik().TreeView()
.Name("TreeView")
.DragAndDrop(true)
.ClientEvents(events => events
.OnNodeDragging("onNodeDragging")
)
.BindTo(Model, mappings => {
mappings.For<
ImportOrder
>(binding => binding
.ItemDataBound((item, ImportOrder) =>
{
item.Content = () => { Html.RenderPartial("ItemOrderNode", ImportOrder); };
}));
})
)
Partial view:
@model ImportOrder
Template node test...