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

ASPxClientDropDownCommandEventArgs.commandName Property

Gets the name of the processed command in the ASPxClientDropDownEdit.DropDownCommandButtonClick event.

Declaration

commandName: string

Property Value

Type Description
string

A string value that represents the processed command’s name.

Remarks

The commandName property value should be equal to one of the following values:

  • Apply
  • Close

The following example illustrates how to use the commandName property.

Web Forms:

<dx:ASPxDropDownEdit ClientInstanceName="ddeExtraServices" ID="ddeExtraServices" runat="server" AutoPostBack="false">
    <DropDownApplyButton Visibility="Always"></DropDownApplyButton>
    <DropDownCloseButton Visibility="Always"></DropDownCloseButton>
    <ClientSideEvents TextChanged="synchronizeListBoxValues" DropDown="OnDropDown" DropDownCommandButtonClick="OnDropDownCommandButtonClick" />
</dx:ASPxDropDownEdit>

MVC:

...
group.Items.Add(i => {
    i.Caption="Extra Services";
    i.HelpText="Additional fee charged";
    i.NestedExtension().DropDownEdit(s => {
        s.Name = "ddeExtraServices";
        s.Properties.DropDownApplyButton.Visibility = DropDownElementVisibility.Always;
        s.Properties.DropDownCloseButton.Visibility = DropDownElementVisibility.Always;
        ...
        s.Properties.ClientSideEvents.DropDownCommandButtonClick = "onDropDownCommandButtonClick";
    });
});

Online Demos

See Also