This example shows how to configure pre-set content for Telerik PanelBar for ASP.NET MVC. The panelbar allows you to render regular HTML mark-up code as a content of the corresponding item, instead of child items.

To set the content use the Content method which accepts an Action. Html should be added between %> and <% as in the example.

    <% Html.Telerik().PanelBar()
           .Name("PanelBar")
           .Items(items =>
           {
                items.Add()
                     .Text("Products > Books")
                     .Content(() =>
                     {
                     %>
                        <!-- Content -->
                     <%
                     });
           })
           .Render();
    %>