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

ASPxClientListEdit.SelectedIndexChanged Event

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

Declaration

SelectedIndexChanged: ASPxClientEvent<ASPxClientProcessingModeEventHandler<ASPxClientListEdit>>

Event Data

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

Property Description
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.

Examples

The code sample below demonstrates how you can use the ASPxTrackBar control to display the wavelength range of the selected color.

The ASPxClientListEdit.SelectedIndexChanged event is handled to specify the track bar range interval. The ASPxClientTrackBar.SetPositionStart and ASPxClientTrackBar.SetPositionEnd methods specify range limits.

The image below shows the result.

TrackBar_SetPosition

function setWavelength() {
     tbWavelength.SetPositionStart(colorList.GetValue());
     if (colorList.GetSelectedIndex() == 0) tbWavelength.SetPositionEnd(750)
     else tbWavelength.SetPositionEnd(colorList.GetItem(colorList.GetSelectedIndex() - 1).value); 
     label.SetText('The visible ' + colorList.GetSelectedItem().text + ' light has a wavelength in the interval ' 
     + tbWavelength.GetPositionStart() + ' to ' + tbWavelength.GetPositionEnd() + ' nm');
}
See Also