Telerik Extensions for ASP.NET MVC

Version Q1 2012, released 04/19/2012

Orientation

The menu should be...

About this example ASPXRazor

This example shows how to configure the Telerik Menu for ASP.NET MVC to render its items in horizontal or vertical direction.

Use the Orientation method to set the orientation of the menu. The method accepts the MenuOrientation enumeration:

  • Horizontal orientation : Use the MenuOrientation.Horizontal option
    <%= Html.Telerik().Menu()
            .Items(items => 
            {
               /*items definition*/
            })
            .Orientation(MenuOrientation.Horizontal)
    %>
            
  • Vertical orientation : Use the MenuOrientation.Vertical option
    <%= Html.Telerik().Menu()
            .Items(items =>
            {
              /*items definition*/
            })
            .Orientation(MenuOrientation.Vertical)
    %>
            

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: