ASPxClientGanttCustomCommandEventArgs.parameter Property
Gets an optional parameter that complements the processed command.
Declaration
parameter: any
Property Value
Type | Description |
---|---|
any | A string value containing additional information about the processed command. |
Remarks
The parameter property complements the commandName property and allows you to obtain additional information about the processed command.
Web Forms:
<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') {
clientGantt.ShowResources(e.parameter);
}
}" />
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.SettingsToolbar.Items.AddCustomItem(i => {
i.Checked = true;
i.Text = "Show Resources";
i.CommandName = "ShowResources";
});
settings.ClientSideEvents.CustomCommand = "function (s, e) {
if(e.commandName == 'Toggle') {
clientGantt.ShowResources(e.parameter);
}
}";
...
}).Bind(
GanttDataProvider.Tasks, GanttDataProvider.Dependencies,
GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
Examples
See Also