<%= Html.Telerik().TreeView()
.Name("TreeView")
.BindTo(Model, mappings =>
{
mappings.For<Category>(binding => binding
.ItemDataBound((item, category) =>
{
item.Text = category.CategoryName;
})
.Children(category => category.Products));
mappings.For<Product>(binding => binding
.ItemDataBound((item, product) =>
{
item.Text = product.ProductName;
}));
})
%>
This question is locked. New answers and comments are not allowed.
Hello Friends..
I used this code to display treeview in my view.. I can able to display all categories and prodcutes but I am seeing in readyonly i am not able to expand tree node.. Is there any readonly property I can make false? or how to do this?
thanks
I used this code to display treeview in my view.. I can able to display all categories and prodcutes but I am seeing in readyonly i am not able to expand tree node.. Is there any readonly property I can make false? or how to do this?
thanks