Telerik Extensions for ASP.NET MVC

Version Q1 2012, released 04/19/2012

Templates

About this example ASPXRazor

This example shows the templates support in Telerik TreeView for ASP.NET MVC.

You can set the template for the contents of a given item in the following way:

<% Html.Telerik().TreeView()
        .Name("TreeView")
        .Items(treeview =>
        {
            treeview.Add().Text("UI Components")
                .Content(() =>
                {%>
                    <!-- template content -->
                <%});
        })
        .Render();
%>

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: