Templates
Theme: vista
- Products > Books
-
Understanding Exposure:
How to Shoot Great Photographs -
Get the Most from Your
Digital Camera: The Ultimage Guide -
Digital SLR Cameras:
Photography for Dummies
-
- Customer testmonials
- How to find us
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();
%>