Skip to main content

MenuSettings Class

Contains the Menu extension settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.1.dll

NuGet Package: DevExpress.Web.Mvc5


public class MenuSettings :


To declare the Menu in a View, invoke the ExtensionsFactory.Menu helper method. This method returns the Menu extension that is implemented by the MenuExtension class.

To configure the Menu extension, pass the MenuSettings object to the ExtensionsFactory.Menu helper method as a parameter. The MenuSettings object contains all the Menu extension settings.

Refer to the Menu Overview topic to learn how to add the Menu extension to your project.

@Html.DevExpress().Menu(settings => {
    settings.Name = "menu1";
    settings.ShowPopOutImages = DefaultBoolean.True;

    var item = settings.Items.Add("Home");
    var subItem = item.Items.Add("News");
    subItem.Items.Add("For Developers");
    subItem.Items.Add("Website News");
    item.Items.Add("Our Mission");
    item.Items.Add("Our Customers");

    item = settings.Items.Add("Products");
    item.Items.Add("Subscriptions / Packs");
    item.Items.Add(".NET Windows Forms Components");
    item.Items.Add("ASP.NET Components");

    item = settings.Items.Add("Support");
    item.Items.Add("Support Center");


See Also