12.5. Menu

The Menu control is the ASP.NET MVC equivalent to RadMenu in Telerik RadControls for ASP.NET AJAX. It is composed of root items that can have nested child items. You can define whether the menu is displayed horizontally or vertically with the Orientation property; also, it can have animations for when the menu items are shown and hidden, and it can be bound to a model data source.

12.5.1. Creating a Menu Declarative and Defining the Menu Orientation

Listing 12-14 shows you how to create a menu declaratively (manually), and it also shows how to use the Orientation property. Figure 12-14 shows it in action.

Example 12.14. Menu Creation and Orientation Declaratively
Controller public ActionResult DeclarativeItems() { var model = new ...

Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.