New to Telerik UI for ASP.NET AJAX? Download 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:

  1. The RadComboBox which has fired the event. This argument is of type object, but can be cast to the RadComboBox type.

  2. 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:

<telerik:radcombobox onitemchecked="OnItemChecked" runat="server" checkboxes="True"
    autopostback="true">          
</telerik:radcombobox>

protected void OnItemChecked(object sender, RadComboBoxItemEventArgs e)
{
    Label1.Text += e.Item.Text + " is checked; ";

}


Protected Sub OnItemChecked(ByVal sender As Object, ByVal e As RadComboBoxItemEventArgs)
    Label1.Text += e.Item.Text + " is checked; "

End Sub

See Also

In this article