ASPxComboBox.ClientSideEvents Property
Gets an object that lists the client-side events specific to the ASPxComboBox.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v22.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
ComboBoxClientSideEvents | A ComboBoxClientSideEvents object which allows assigning handlers to the client-side events available to the ASPxComboBox. |
Remarks
This property is a wrapper of the ComboBoxProperties.ClientSideEvents property.
Example
function OnComboBoxSelectedIndexChanged(s, e) {
var item = s.GetSelectedItem();
popup.SetContentHTML(
"Selected item changed:<br /><br />" +
" <strong>text=</strong>'" + item.text + "'<br />" +
" <strong>value</strong>=" + item.value + "<br /><br />");
popup.ShowAtElementByID("comboPopupAnchor");
}
<dxe:ASPxComboBox ID="cbCombo" runat="server" Width="170px" ClientInstanceName="combo">
<ClientSideEvents SelectedIndexChanged="OnComboBoxSelectedIndexChanged" />
<Items>
<dxe:ListEditItem Text="Item #1" Value="0" />
<dxe:ListEditItem Text="Item #2" Value="1" />
<dxe:ListEditItem Text="Item #3" Value="2" />
</Items>
</dxe:ASPxComboBox>
See Also