This question is locked. New answers and comments are not allowed.
Hi,
I want to expand the selected item childs on page load, is that possible?
It seems that the first level items already have this behavior, but not second or third hierarchy items and so on.
Regards,
Mattias
I want to expand the selected item childs on page load, is that possible?
It seems that the first level items already have this behavior, but not second or third hierarchy items and so on.
@(Html.Telerik().PanelBar() .Name("ArticleGroupSubMenu") .HtmlAttributes(new { style = "width: 200px;" }) .BindTo(Model.GetChildMenu(), mappings => { mappings.For<ArticleGroupEditViewModel>(binding => binding .ItemDataBound((item, group) => { item.Text = group.Text; item.Url = group.Url; }) .Children(group => group.Childs)); mappings.For<ArticleGroupEditViewModel>(binding => binding .ItemDataBound((item, group) => { item.Text = group.Text; item.Url = group.Url; })); }) .ExpandMode(PanelBarExpandMode.Multiple) .ExpandAll(true) .HighlightPath(true) )Regards,
Mattias
