Skip to main content
A newer version of this page is available. .

GanttContextMenuItemBuilder.Items(Action<CollectionFactory<ContextMenuItemBuilder>>) Method

Mirrors the client-side items option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttContextMenuItemBuilder Items(
    Action<CollectionFactory<ContextMenuItemBuilder>> configurator
)

Parameters

Name Type Description
configurator Action<CollectionFactory<ContextMenuItemBuilder>>

A function that configures toolbar options.

Returns

Type Description
GanttContextMenuItemBuilder

A reference to this instance after the method is called.

Remarks

@(Html.DevExtreme().Gantt()
    .ContextMenu(cm => {
        cm.Items(i => {
            i.Add().Items(item => {
              //...
            })
        });
    })
    //...
)
See Also