Telerik Extensions for ASP.NET MVC

Version Q2 2012, released 06/07/2012

Templates

About this example ASPXRazor

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();
%>

Interested in HTML5 and mobile-powered ASP.NET MVC apps?

Experience the next generation UI and framework for ASP.NET MVC development by downloading trial evaluation copy of Kendo UI Complete for ASP.NET MVC. Jumpstart your development with the available learning resources.

The differences between Telerik MVC Extensions and Kendo UI Complete for ASP.NET MVC, and their licensing models are explained here and here.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Other Demos: