Skip to main content
API

GanttContextMenuBuilder Class

The context menu.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public class GanttContextMenuBuilder :
    OptionsOwnerBuilder

Remarks

Run Demo: Context Menu

@(Html.DevExtreme().Gantt()
    .ContextMenu(cm => {
        cm.Items(i => {
            i.Add().Name(GanttContextMenuItem.AddTask);
            i.Add().Name(GanttContextMenuItem.TaskDetails);
            i.Add().Name(GanttContextMenuItem.DeleteTask);
            i.Add().Name("ToggleDisplayOfResources").Text("Toggle Display of Resources");
        });
    })
    //...
)

Inheritance

Object
OptionsOwnerBuilder
GanttContextMenuBuilder
See Also