Skip to main content
JS

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttToolbarItem Enum

Lists standard toolbar items.

Namespace: DevExtreme.AspNet.Mvc

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
[JsonConverter(typeof(StringEnumConverter))]
public enum GanttToolbarItem

#Members

Name Description
Separator

A separator between toolbar items.

Undo

Reverses the last action.

Redo

Repeats the undone action.

ExpandAll

Expands all tasks.

CollapseAll

Collapses all tasks.

AddTask

Adds a task.

DeleteTask

Deletes a task.

ZoomIn

Zooms in the chart.

ZoomOut

Zooms out the chart.

TaskDetails

Invokes the Task Details dialog.

FullScreen

Switches the Gantt to full screen mode.

ResourceManager

Invokes the Resource Manager dialog.

ShowResources

Shows or hides task resources.

ShowDependencies

Shows or hides task dependencies.

#Remarks

Use the ScaleType(GanttScaleType) method to specify a zoom level of tasks in the Gantt chart.

@(Html.DevExtreme().Gantt()
    .Toolbar(toolbar => {
        toolbar.Items(items => {
            items.Add().Name(GanttToolbarItem.Undo);
            //...
        }
    }
    //...
)
See Also