Back to Devexpress

GanttToolbarItem Enum

aspnetcore-devextreme-dot-aspnet-dot-mvc-1a8074ac.md

latest1.5 KB
Original Source

GanttToolbarItem Enum

Lists standard toolbar items.

Namespace : DevExtreme.AspNet.Mvc

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
[JsonConverter(typeof(StringEnumConverter))]
public enum GanttToolbarItem

Members

NameDescription
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.

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

See Also

DevExtreme.AspNet.Mvc Namespace