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

GanttCustomToolbarItem.CommandName Property

Specifies the command name.

Namespace: DevExpress.Web.ASPxGantt

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

NuGet Package: DevExpress.Web

Declaration

public string CommandName { get; set; }

Property Value

Type Description
String

The command name.

Remarks

The CommandName property specifies a custom toolbar item’s command name.

<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