Edit this page

OnItemCheckedChanged

The itemCheckedChanged event occurs when user changes the checked state of an item in RadCheckBoxList.

The event handler receives two parameters:

  1. The instance of the loaded RadCheckBoxList control.

  2. An eventArgs parameter of type Telerik.Web.UI.ButtonListEventArgs, containing the following properties and methods:

Example 1: Handling RadCheckBoxList OnItemCheckedChanged event.

<script type="text/javascript">
    function OnItemCheckedChanged(sender, args) {
        var selectedLanguage = args.get_item().get_text();
        alert("Checked state changed on " + selectedLanguage + " language!");
    }
</script>

<telerik:RadCheckBoxList runat="server" ID="RadCheckBoxList1">
    <ClientEvents OnItemCheckedChanged="OnItemCheckedChanged" />
    <Items>
        <telerik:CheckBoxListItem Text="English" Selected="true" />
        <telerik:CheckBoxListItem Text="German" />
        <telerik:CheckBoxListItem Text="French" />
    </Items>
</telerik:RadCheckBoxList>

See Also