Telerik Extensions for ASP.NET MVC

Templates

Theme: vista

About this example

This example shows how to configure pre-set content for Telerik Menu for ASP.NET MVC. The menu 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().Menu()
       .Name("Menu")
       .Items(items => 
       {
            items.Add()
                 .Text("Products > Books")
                 .Content(() => 
                 { 
                 %>
                    <!-- Content -->
                 <% 
                 });
       })
       .Render();
%>