This question is locked. New answers and comments are not allowed.
Hello! Thx for your MVC components, they are great!
But, I've noticed some strange behavior when using PanelBar items content() method in some other content() method(for example tabstrip content). When the page is loaded - the state of the panel item is not expanded, but if insted of content i use item it works as it should
here is code sample
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <% Html.Telerik().TabStrip().Name("MyTabs") .Items(tabstrip => { tabstrip.Add() .Text("test") .Content(() => { Html.Telerik().PanelBar() .Name("catalog") .Items(item=> { item.Add() .Text("my_groups") .ImageUrl("~/Content/Img/GridTab/groups.png") .ImageHtmlAttributes(new { alt = "My Groups Icon" }) // using items - that expands fine //.Items( subItem=>{ subItem.Add().Text("Test").Action("test","test");}) // using content() - that doesn't .Content(() => { %> <ul class="t-group"> <li class="t-item t-state-default"> <a class="t-link" href="/MyTest/Test">Test</a> </li> </ul> <% }) .Expanded(true); }).Render(); }); }) .SelectedIndex(0) .Render(); %> </asp:Content>