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>
Examples
See Also