Skip to main content

GanttContextMenuBuilder.Enabled(Boolean) Method

Specifies whether the context menu is enabled in the UI component. Mirrors the client-side enabled option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttContextMenuBuilder Enabled(
    bool value
)

Parameters

Name Type Description
value Boolean

The option value.

Returns

Type Description
GanttContextMenuBuilder

A reference to this instance after the method is called.

Remarks

@(Html.DevExtreme().Gantt()
    .ContextMenu(cm => {
        cm.Enabled(false)
        ...
        });
    })
    //...
)
See Also