New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
ItemChecked
The ItemChecked event occurs when the user checks a new item in the drop-down list.
The ItemChecked event does not fire unless the AutoPostBack property is True as well as CheckBoxes property .
The CheckBox support of RadComboBox is added in version 2011 Q2. Before then, this functionality is achieved using templates.
The ItemChecked event handler receives two arguments:
-
The RadComboBox which has fired the event. This argument is of type object, but can be cast to the RadComboBox type.
-
An EventArgs object. This object has an Item property, which provides access to the item that has just been checked.
Use the ItemChecked event handler to respond in server-side code when the user checks an item:
ASPNET
<telerik:radcombobox onitemchecked="OnItemChecked" runat="server" checkboxes="True"
autopostback="true">
</telerik:radcombobox>
C#
protected void OnItemChecked(object sender, RadComboBoxItemEventArgs e)
{
Label1.Text += e.Item.Text + " is checked; ";
}