All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

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