Telerik Extensions for ASP.NET MVC

Version Q1 2012, released 04/19/2012

Load on Demand of Content

About this example ASPXRazor

This example shows how to configure Telerik PanelBar for ASP.NET MVC to load the templated contents with Ajax requests. The request is performed only once. After that the content is rendered on the page and panelbar shows/hides it without performing additional Ajax requests.

To set the item content you should use the LoadContentFrom method.

<%= Html.Telerik().PanelBar()
     .Name("PanelBar")
     .Items(items => 
     {
            items.Add()
                 .Text("Completely Open Source")
                 .LoadContentFrom("AjaxView_OpenSource", "PanelBar");
     })
 %>

Get more than expected!

Take the Telerik Extensions for ASP.NET MVC to your Visual Studio projects to truly experience their power. Download your free copy now and jumpstart your development with the available learning resources.

The Extensions are offered in both open source and commercial versions the differences between which are well explained in the licensing FAQ.

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

Other Demos: