WidgetFactory<TModel>.ContextMenu() Method

Creates a ContextMenu control.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ContextMenuBuilder ContextMenu()

Returns

Type Description
ContextMenuBuilder

An instance of ContextMenuBuilder.

Remarks

This method creates a ContextMenuBuilder class instance whose members can be used to specify ContextMenu options.

@(Html.DevExtreme().ContextMenu() // create a ContextMenu
    // call methods to specify control options
)
See Also