# SelectedIndexChanged

The **SelectedIndexChanged** event occurs when the user selects a new item from the drop-down list in the RadComboBox.

> To use the **SelectedIndexChanged**, set the **AutoPostBack** property to **True**. Otherwise, the **SelectedIndexChanged** event will not fire.

The **SelectedIndexChanged** event handler receives two arguments:

1. The **RadComboBox** that is loading items. This argument is of type object but can be cast to the **RadComboBox** type.

2. An EventArgs object. This object has the following properties for identifying what has changed:

   * **Text** is the text of the item that was just selected.

   * **Value** is the value of the item that was just selected.

   * **OldText** is the text of the item that was previously selected

   * **OldValue** is the value of the item that was previously selected

The following examples demonstrate how to use the **SelectedIndexChanged** event handler to respond in server-side code when the user changes the current selection:

```ASPNET
<telerik:radcombobox 
	id="RadComboBox1" 
	runat="server" 
	autopostback="True" 
	onselectedindexchanged="RadComboBox1_SelectedIndexChanged">
</telerik:radcombobox>
```

```C#
		
protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
	Label1.Text = "You selected " + e.Text + " item";
}
	
```

```VB.NET
	
Protected Sub RadComboBox1_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)

	Label1.Text = "You selected " + e.Text + " item"

End Sub
	
```

## See Also

* [TextChanged](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/server-side-programming/textchanged)

* [OnClientSelectedIndexChanging](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/client-side-programming/events/onclientselectedindexchanging)

* [OnClientSelectedIndexChanged](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/client-side-programming/events/onclientselectedindexchanged)
