Back to Devexpress

ContextMenuBuilder.ShowSubmenuMode(ShowSubmenuMode) Method

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

latest1.4 KB
Original Source

ContextMenuBuilder.ShowSubmenuMode(ShowSubmenuMode) Method

Specifies properties of submenu showing and hiding. Mirrors the client-side showSubmenuMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public ContextMenuBuilder ShowSubmenuMode(
    ShowSubmenuMode value
)

Parameters

NameTypeDescription
valueShowSubmenuMode

The option value.

|

Returns

TypeDescription
ContextMenuBuilder

A reference to this instance after the method is called.

|

Remarks

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

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

See Also

ContextMenuBuilder Class

ContextMenuBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace