New to Kendo UI for jQuery? Download free 30-day trial

Events

The ToggleButton exposes a toggle event that you can handle when the selected state is altered.

For a complete example on basic ToggleButton events, refer to the demo on using the events of the ToggleButton.

The following example demonstrates how to subscribe to the toggle event.

    <button id="togglebutton">
        Toggle Button
    </button>

    <script>
        $(document).ready(function(){
            $("#togglebutton").kendoToggleButton({
                group: "toggleGroup",
                toggle: onToggle
            });
        })

        function onToggle(e) {
            console.log(e.target.text() + " 'toggle' event is fired."  + " Checked State:" + e.checked + " Group:" + e.group);
        }
    </script>

Next Steps

See Also

In this article