focus

Fires when a checkbox in the CheckBoxGroup is focused through user interaction.

Event Data

e.sender kendo.ui.CheckBoxGroup

The widget instance which fired the event.

e.target jQuery

The <input type="checkbox"> element that triggered the change.

Example - handling the change event

<ul id="checkboxgroup"></ul>

<script>
    $("#checkboxgroup").kendoCheckBoxGroup({
        items: [ "one", "two", "three" ],
        focus: function (e) {
            // The result can be observed in the DevTools(F12) console of the browser.
            console.log(e.target);
            console.log("The old checked state of the checkbox --> " + e.target.val() + "  " + e.target[0].checked); 
            setTimeout(function(){
              console.log("The new checked state of the checkbox --> " + e.target.val() + "  " + e.target[0].checked); 
            })
        }
    });
</script>
In this article