Load on Demand of Content
Theme: vista
- Pure ASP.NET MVC components
Telerik Extensions for ASP.NET MVC is built from the ground up to fully embrace the values of the ASP.NET MVC framework - lightweight rendering, clean HTML, clear separation of concerns, easy testability - while helping make you more productive building MVC views.
- Completely Open Source
- Exceptional Performance
- Based on jQuery
- Wide Cross-browser support
About this example
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");
})
%>