Skip to main content
A newer version of this page is available. .

GanttCollapseAllToolbarItem Class

A toolbar item that collapses all tasks.

Namespace: DevExpress.Web.ASPxGantt

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

NuGet Package: DevExpress.Web

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