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

ASPxClientGanttCustomCommandEventArgs.commandName Property

Specifies the command name for a custom toolbar item.

Declaration

commandName: string

Property Value

Type Description
string

The command name.

Remarks

Use the commandName property to specify a custom toolbar item’s command name.

<dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
    <SettingsToolbar>
        <Items>
            <dx:GanttCustomToolbarItem Checked="True" Text="Show Resources" CommandName="Toggle" />
        </Items>
    </SettingsToolbar>
    <ClientSideEvents CustomCommand="function(s, e) {
        if(e.commandName == 'Toggle') {
            gantt.ShowResources(e.parameter);
        }
    } />
</dx:ASPxGantt>

Run Demo: (Web Forms) Gantt Toolbar

Run Demo: (MVC) Gantt Toolbar

Examples

See Also