Edit this page

SelectedIndexChanged

The SelectedIndexChanged fires when you change the selected item. It will fire automatically if the AutoPostBack="True". The event fires before the TextChanged server event.

The event handler receives two parameters:

  1. The instance of the listbox firing the event

  2. An event arguments parameter containing no methods

protected void RadListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
    Label.Text = "You have selected item : " +  RadListBox1.SelectedItem.Text;
}   
Protected Sub RadListBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
    Label.Text = "You have selected item : " + RadListBox1.SelectedItem.Text
End Sub

See Also