Button

Controls

Rate this demo

Thank you for your post!
Submit a support ticket
If you have an active license or trial, you have access to dedicated support from Telerik’s developers. Response time is 24h for active licenses and 72h for trials, Mon-Fri.
Post in the forums
If you don’t have access to support or would like to help other people by sharing your problem, reach out to our active community in the forums.

Button - Radios and Checkboxes

Radio Buttons







UnChecked

Checked

UnChecked

UnChecked

Checked

UnChecked

Checkboxes







UnChecked

Checked

UnChecked

UnChecked

Checked

UnChecked

Three-State Checkboxes







UnChecked

Filled

Checked

UnChecked

Filled

Checked

RadButton Checkboxes and Radio Buttons

The RadButton control provides an easy way to fully customize the look and feel of your check boxes and radio buttons. Any ButtonType (StandardButton, LinkButton and ToggleButton) can be turned into a check box, radio, or custom toggle button, by setting the ToggleType property to a value different than ButtonToggleType.None. Simply, set the ToggleType to ButtonToggleType.CheckBox and you get a button that looks like a StandardButton, or LinkButton, but behaves as a check box. Set the ToggleType to ButtonToggleType.Radio and you get a button that behaves like a radio button, but looks like a StandardButton, or LinkButton.
The possibility to customize every single state of the RadButton, when used as a toggle, gives the developer even more power to further enhance his/her check boxes and radio buttons.

1. Radio Buttons
<telerik:RadButton ID="btnToggle" runat="server" ToggleType="Radio" ButtonType="StandardButton" GroupName="StandardButton">
 <ToggleStates>
   <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked" />
   <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio" />
 </ToggleStates>
</telerik:RadButton>


2. Checkboxes
<telerik:RadButton ID="btnToggle" runat="server" ToggleType="CheckBox" ButtonType="LinkButton">
 <ToggleStates>
   <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked" />
   <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox" />
 </ToggleStates>
</telerik:RadButton>


3. Three-state check box
<telerik:RadButton ID="btnToggle" runat="server" ToggleType="CustomToggle" ButtonType="StandardButton">
 <ToggleStates>
  <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox" />
  <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled" />
  <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
           CssClass="rbSkinnedButtonChecked" />
 </ToggleStates>
</telerik:RadButton>
C# VB
Show code in new window Demo isolation steps
<%@ Page Language="C#" AutoEventWireup="true"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>ASP.NET Button Demo - Radios and Checkboxes</title>
     <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
     <div class="clear">
          <qsf:InformationBox ID="RadioButtons" runat="server" Title="Radio Buttons" Width="400px"
               Style="padding-top: 15px">
          </qsf:InformationBox>
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton16" runat="server" ToggleType="Radio" ButtonType="StandardButton"
               GroupName="StandardButton" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton17" runat="server" ToggleType="Radio" Checked="true"
               GroupName="StandardButton" ButtonType="StandardButton" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton18" runat="server" ToggleType="Radio" GroupName="StandardButton"
               ButtonType="StandardButton" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton19" runat="server" ToggleType="Radio" ButtonType="LinkButton"
               GroupName="LinkButton" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton20" runat="server" ToggleType="Radio" ButtonType="LinkButton"
               GroupName="LinkButton" Checked="true" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton21" runat="server" ToggleType="Radio" ButtonType="LinkButton"
               GroupName="LinkButton" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleRadioChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleRadio">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton22" runat="server" ToggleType="Radio" ButtonType="ToggleButton"
               GroupName="Radios" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton23" runat="server" ToggleType="Radio" ButtonType="ToggleButton"
               Checked="true" GroupName="Radios" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton24" runat="server" ToggleType="Radio" ButtonType="ToggleButton"
               GroupName="Radios" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="clear">
          <qsf:InformationBox ID="CheckBoxes" runat="server" Title="Checkboxes" Width="400px"
               Style="padding-top: 15px">
          </qsf:InformationBox>
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton1" runat="server" ToggleType="CheckBox" ButtonType="StandardButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton2" runat="server" ToggleType="CheckBox" Checked="true"
               ButtonType="StandardButton" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton3" runat="server" ToggleType="CheckBox" ButtonType="StandardButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton4" runat="server" ToggleType="CheckBox" ButtonType="LinkButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton5" runat="server" ToggleType="CheckBox" ButtonType="LinkButton"
               Checked="true" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton6" runat="server" ToggleType="CheckBox" ButtonType="LinkButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton10" runat="server" ToggleType="CheckBox" ButtonType="ToggleButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton14" runat="server" ToggleType="CheckBox" ButtonType="ToggleButton"
               Checked="true" AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton15" runat="server" ToggleType="CheckBox" ButtonType="ToggleButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="Checked"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="UnChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="clear">
          <qsf:InformationBox ID="ThreeState" runat="server" Title="Three-State Checkboxes"
               Width="400px" Style="padding-top: 15px">
          </qsf:InformationBox>
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="btnToggle1" runat="server" ToggleType="CustomToggle" ButtonType="StandardButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         CssClass="rbSkinnedButtonChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="btnToggle2" runat="server" ToggleType="CustomToggle" ButtonType="StandardButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled"
                         Selected="true"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         CssClass="rbSkinnedButtonChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="btnToggle3" runat="server" ToggleType="CustomToggle" ButtonType="StandardButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         CssClass="rbSkinnedButtonChecked" Selected="true"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton7" runat="server" ToggleType="CustomToggle" ButtonType="LinkButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         CssClass="rbLinkButtonChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton8" runat="server" ToggleType="CustomToggle" ButtonType="LinkButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled"
                         Selected="true"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         CssClass="rbLinkButtonChecked"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton9" runat="server" ToggleType="CustomToggle" ButtonType="LinkButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         CssClass="rbLinkButtonChecked" Selected="true"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
     <div class="classDiv">
          <telerik:RadButton ID="RadButton11" runat="server" ToggleType="CustomToggle" ButtonType="ToggleButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton12" runat="server" ToggleType="CustomToggle" ButtonType="ToggleButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled"
                         Selected="true"></telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked">
                    </telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
          <telerik:RadButton ID="RadButton13" runat="server" ToggleType="CustomToggle" ButtonType="ToggleButton"
               AutoPostBack="false">
               <ToggleStates>
                    <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Filled" PrimaryIconCssClass="rbToggleCheckboxFilled">
                    </telerik:RadButtonToggleState>
                    <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked"
                         Selected="true"></telerik:RadButtonToggleState>
               </ToggleStates>
          </telerik:RadButton>
          <br />
          <br />
     </div>
    </form>
</body>
</html>
Telerik UI for ASP.NET AJAX Q3'14 Release is here