New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The checkedChanged event is subsequent to the checkedChanging event, and occurs when the RadSwitch checked state is changed.

The event handler receives two parameters:

  1. The instance of the clicked RadSwitch control.

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

    • get_checked() - returns the checked state of the control.

    • get_domEvent() - returns the DOM event of the control.

    • get_commandName() - returns the value assigned to the RadSwitch's CommandName property.

    • get_commandArgument() - returns the value assigned to the RadSwitch's CommandArgument property.

This event is useful when the user wants to execute custom client code when the button changes its toggle state.

Example 1: Using the OnClientCheckedChanged event to get the checked state of the switch.

<script type="text/javascript">
    function checkedChanged(sender, args) {

<telerik:RadSwitch ID="RadSwitch1" runat="server"
    AutoPostBack="false" OnClientCheckedChanged="CheckedChanged">

See Also

In this article
Not finding the help you need? Improve this article