ToggleButton - WCAG 2.0 and Section 508 Accessibility Compliance

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

RadToggleButton is compliant with Section 508 and Level AAA of the WCAG 2.0 Guidelines. Run WAVE, the automated web accessibility evaluation tool, to check the accessibility level of the control yourself.

RadToggleButton is also visible in Windows High Contrast mode when rendered with the Simple skin.

You can also use the keyboard to focus and activate a RadToggleButton, as shown in the Keyboard Navigation demo.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.ToggleButton.Accessibility.DefaultCS" %>

<%@ 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>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-thin" style="text-align: center">
        <telerik:RadToggleButton Width="100px" ID="btnToggle1" runat="server" AutoPostBack="false">
            <ToggleStates>
                <telerik:ButtonToggleState Text="Play" Icon-CssClass="play-icon"></telerik:ButtonToggleState>
                <telerik:ButtonToggleState Text="Pause" Icon-CssClass="pause-icon"></telerik:ButtonToggleState>
                <telerik:ButtonToggleState Text="Stop" Icon-CssClass="stop-icon"></telerik:ButtonToggleState>
            </ToggleStates>
        </telerik:RadToggleButton>
    </div>
    <asp:LinkButton ID="ImageButton1" runat="server" OnClick="ImageButton1_Click">Validate with WAVE</asp:LinkButton>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?