This question is locked. New answers and comments are not allowed.
I'm trying to bind my PanelBar to a hierarchical model. A view displays but no link is generated. I tried the action properties and URL property - none worked. What am I missing? Is this a bug?
Model
View
Model
public class NavigationData{ public string Text { get; set; } public string ImageUrl { get; set; } public string NavigateUrl { get; set; } public string ControllerName { get; set; } public string ActionName { get; set; } public string RouteName { get; set; } public List<NavigationData> ChildItems { get; set; } }View
@model IEnumerable<Project.Models.NavigationData>@{ ViewBag.Title = "Index";}@{ Html.Telerik().PanelBar() .Name("NavBar") .SelectedIndex(1) .BindTo(Model, mappings => { mappings.For<Project.Models.NavigationData>(binding => binding .ItemDataBound((item, nav) => { item.Text = nav.Text; }) .Children(nav => nav.ChildItems)); mappings.For<Project.Models.NavigationData>(binding => binding .ItemDataBound((item, childnav) => { item.Text = childnav.Text; //item.Url = childnav.NavigateUrl; item.ControllerName = childnav.ControllerName; item.ActionName = childnav.ActionName; item.RouteName = childnav.RouteName; })); }) .Render();}