GanttCollapseAllToolbarItem Class
A toolbar item that collapses all tasks.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.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>