This question is locked. New answers and comments are not allowed.
Hi,
Here is the code for my partial view:
ObnCategoryDTO and ObnSubcategoryDTO are classes that I created that are being populate in a Linq to Entities query. ObnCategoryDTO has a name and id property and it has :
The tree view displays and when we look at the page source the subitems are populated correctly. But the treeview is disables/readonly so when we click the arrows it doesn't expand and when we click the ClickEvent is not fired.
Anyone have any suggestions/solutions?
Thanks in advance!!!!
Here is the code for my partial view:
<%
= Html.Telerik().TreeView()
.Name("TreeView")
.ClientEvents(events => events.OnSelect("onSelect"))
.HtmlAttributes(new { style = "width:100%;" })
.BindTo(Model.ObnCategoriesDTO, mappings =>
{ mappings.For<ObnCategoryDTO>(binding => binding
.ItemDataBound((item, category) => { item.Text = category.ObnCategoryName; })
.Children(category =>category.ObnSubCategories));
mappings.For<ObnSubcategoryDTO>(binding => binding
.ItemDataBound((item, subCategory) => { item.Text = subCategory.ObnCategoryName; }));
})
%>
ObnCategoryDTO and ObnSubcategoryDTO are classes that I created that are being populate in a Linq to Entities query. ObnCategoryDTO has a name and id property and it has :
public List<ObnSubcategoryDTO> ObnSubCategories
The tree view displays and when we look at the page source the subitems are populated correctly. But the treeview is disables/readonly so when we click the arrows it doesn't expand and when we click the ClickEvent is not fired.
Anyone have any suggestions/solutions?
Thanks in advance!!!!