This question is locked. New answers and comments are not allowed.
I have a collection of items which are hierarchally linked by parent id and would like to know how can I generate a treeview by using lambda. This is my code so far but it does not build a hierarchal tree:
@(Html.Telerik().TreeView() .Name("ContentTree") .BindTo(Model.ContentList, mappings => { mappings.For<Content>(binding => binding .ItemDataBound((item, content) => { item.Text = content.Name; item.ImageUrl = Url.Content("~/SiteContent/Images/Tree/folder.gif"); item.Expanded = true; })); }) )