Back to Devexpress

MenuBuilder.ShowSubmenuMode(ShowSubmenuMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-menubuilder-dot-showsubmenumode-x28-devextreme-dot-aspnet-dot-mvc-dot-showsubmenumode-x29.md

latest1.3 KB
Original Source

MenuBuilder.ShowSubmenuMode(ShowSubmenuMode) Method

Mirrors the client-side showSubmenuMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public MenuBuilder ShowSubmenuMode(
    ShowSubmenuMode value
)

Parameters

NameTypeDescription
valueShowSubmenuMode

The option value.

|

Returns

TypeDescription
MenuBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Menu()
    .ShowSubmenuMode(ShowSubmenuMode.OnClick)
)

See Also

MenuBuilder Class

MenuBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace