Skip to main content
All docs
V25.1
  • GanttCustomToolbarItem.CommandName Property

    Specifies the command name.

    Namespace: DevExpress.Web.ASPxGantt

    Assembly: DevExpress.Web.ASPxGantt.v25.1.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