Telerik Extensions for ASP.NET MVC

Version Q1 2012, released 04/19/2012

Load on Demand

Ajax

  • Andrew Fuller

ASMX Web Service

  • Andrew Fuller

WCF Web Service

  • Andrew Fuller

About this example ASPXRazor

This example shows how to configure Telerik TreeView for ASP.NET MVC to load its nodes through Ajax requests. The request is performed only once. After that the content is rendered on the page and treeview shows/hides it without performing additional requests.

You can bind the treeview to an ActionMethod that will get requested through AJAX, or to an ASMX / WCF web service, using the DataBinding method.

<%= Html.Telerik().TreeView()
     .Name("TreeView")
     .DataBinding(dataBinding => dataBinding
         .Ajax().Select("_AjaxLoading", "TreeView")
     )
 %>

You can load the whole treeview from scratch, or load the initially visible nodes using the BindTo method, like the root node in this example.

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: