GanttSettings.SettingsToolbar Property
Contains toolbar settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v20.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
GanttToolbarSettings | Toolbar settings. |
Remarks
The GanttExtension allows you to display the most frequently used commands in the toolbar. Use the Visible property to show or hide the toolbar.
The toolbar has a set of predefined items and supports custom items. Use the Items collection to access toolbar items.
Available toolbar item types:
Toolbar Item Type | Description |
---|---|
A toolbar item that adds a task. | |
A toolbar item that collapses all tasks. | |
A toolbar item that expands all tasks. | |
A toolbar item that switches the control to full screen mode. | |
A toolbar item that repeats the undone action. | |
A toolbar item that removes a task. | |
A toolbar item that reverses an action. | |
A toolbar item that zooms in. | |
A custom toolbar item. | |
A toolbar item that zooms out. |
settings.SettingsToolbar.Items.Add(new GanttCollapseAllToolbarItem() { Text = "Collapse All" });
settings.SettingsToolbar.Items.AddCustomItem(i => {
i.Text = "About";
i.CommandName = "About";
i.BeginGroup = true;
i.Image.IconID = "iconbuilder_actions_info_svg_gray_16x16";
});
settings.SettingsToolbar.Visible = DemoOptions.ShowToolbar;