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

ASPxClientListBox.SelectedIndexChanged Event

Occurs on the client side after a different item in the list box has been selected (focus has been moved from one item to another).

Declaration

SelectedIndexChanged: ASPxClientEvent<ASPxClientListEditItemSelectedChangedEventHandler<ASPxClientListBox>>

Event Data

The SelectedIndexChanged event handler receives an argument of the ASPxClientListEditItemSelectedChangedEventArgs type. The following properties provide information specific to this event.

Property Description
index Gets the index of the item related to the event.
isSelected Gets whether the item has been selected.
processOnServer Gets or sets a value that specifies whether the event should be finally processed on the server side.

Remarks

The SelectedIndexChanged event occurs on the client side whenever selection is moved between items within the list box editor. Write a handler for the SelectedIndexChanged event to perform tasks in response to an end-user selecting a different item from the editor's list.

Note that the ASPxClientListEditItemSelectedChangedEventArgs.index property value is -1 when the "Select All" check box is clicked.

Examples

This part of the Multiple Selection demo illustrates how to use multi-selection mode for the ASPxListBox editor.

 ...
     protected void lbModels_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e) {
         FilterModels(lbFeatures.Items);
         lbModels.DataBind();
     }
     protected void FilterModels(ListEditItemCollection items) {
     ...     
     }
...
See Also