Skip to main content

GanttCustomToolbarItem Class

A custom toolbar item.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class GanttCustomToolbarItem :
    GanttToolbarItemBase

Remarks

Create a GanttCustomToolbarItem class instance and add this item to the Items collection to add a custom toolbar item.

<dx:ASPxGantt ID="Gantt">
    <SettingsToolbar>
        <Items>
            <dx:GanttCustomToolbarItem Text="About" CommandName="About" />
        </Items>
    </SettingsToolbar>
    <ClientSideEvents CustomCommand="CustomCommand" />
    ...
</dx:ASPxGantt>
function CustomCommand(s, e) {
    if (e.commandName == "About")
        alert('Sample message');
}

Run Demo: (Web Forms) Gantt Toolbar

Run Demo: (MVC) Gantt Toolbar

Examples

See Also