The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientComboBox Class

Represents the client-side equivalent of the ASPxComboBox control.

Declaration

declare class ASPxClientComboBox extends ASPxClientDropDownEditBase

Remarks

In addition to the common dropdown editor functionality inherited from its ancestor ASPxClientDropDownEdit object, the ASPxClientComboBox allows you to manipulate its items (ASPxClientComboBox.AddItem, ASPxClientComboBox.InsertItem, ASPxClientComboBox.RemoveItem, ASPxClientComboBox.ClearItems), perform item modification operations without the editor being re-rendered (ASPxClientComboBox.BeginUpdate, ASPxClientComboBox.EndUpdate), access a specific item and obtain the item count (ASPxClientComboBox.GetItem, ASPxClientComboBox.GetItemCount), manipulate the selected item (ASPxClientComboBox.GetSelectedItem/ASPxClientComboBox.SetSelectedItem, ASPxClientComboBox.GetSelectedIndex/ASPxClientComboBox.SetSelectedIndex), respond to the selected item being changed by end-users (ASPxClientComboBox.SelectedIndexChanged) and customize the text displayed within the editor's text box (ASPxClientComboBox.GetText, ASPxClientComboBox.SetText).

Note

The client-side programmatic interface is available if the editor's ASPxEditBase.EnableClientSideAPI property is set to true or any client event is handled.

Note

The ASPxClientComboBox class has an MVC-related equivalent. Refer to the MVCxClientComboBox class for more information.

Example

The following example illustrates how to use the ASPxClientComboBox class.

Note

For a full example, see the ASPxComboBox - Cascading Combo Boxes demo.


<dx:ASPxComboBox runat="server" ID="CmbCountry" DropDownStyle="DropDownList" IncrementalFilteringMode="StartsWith"
    TextField="CountryName" ValueField="CountryName" Width="100%" DataSourceID="CountriesDataSource"
    EnableSynchronization="False">
    <ClientSideEvents SelectedIndexChanged="function(s, e) { OnCountryChanged(s); }" />
</dx:ASPxComboBox>

Online Demo

ASPxComboBox - Cascading Combo Boxes

See Also