Skip to main content

GanttContextMenuBuilder.Items(IEnumerable<GanttContextMenuItem>) Method

Configures context menu item settings. Mirrors the client-side items option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttContextMenuBuilder Items(
    IEnumerable<GanttContextMenuItem> value
)

Parameters

Name Type Description
value IEnumerable<GanttContextMenuItem>

The option value.

Returns

Type Description
GanttContextMenuBuilder

A reference to this instance after the method is called.

Remarks

@(Html.DevExtreme().Gantt()
    .ContextMenu(cm => {
        cm.Items(i => i
          .Items(new[] { GanttContextMenuItem.AddTask })
    )
)
See Also