Edit this page

OnItemClicked

The itemClicked event occurs when item in RadCheckBoxList is clicked. The event is subsequent to itemClicking event and is fired after the client-side validation.

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 OnItemClicking event.

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

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

See Also