Skip to main content

GanttCollapseAllToolbarItem Class

A toolbar item that collapses all tasks.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v21.2.dll

Declaration

public class GanttCollapseAllToolbarItem :
    GanttDefaultToolbarItem

Remarks

Create the GanttCollapseAllToolbarItem class instance and add this item to the Items collection to add a toolbar item that collapses all tasks.

<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsToolbar>
        <Items>
            <dx:GanttCollapseAllToolbarItem Text="Collapse All" />
        </Items>
    </SettingsToolbar>
</dx:ASPxGantt>

Run Demo: (Web Forms) Gantt Toolbar

Run Demo: (MVC) Gantt Toolbar

Examples

See Also