GanttToolbarItem Enum
In This Article
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. |
Expand
|
Expands all tasks. |
Collapse
|
Collapses all tasks. |
Add
|
Adds a task. |
Delete
|
Deletes a task. |
Zoom
|
Zooms in the chart. |
Zoom
|
Zooms out the chart. |
Task
|
Invokes the Task Details dialog. |
Full
|
Switches the Gantt to full screen mode. |
Resource
|
Invokes the Resource Manager dialog. |
Show
|
Shows or hides task resources. |
Show
|
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