Silk skin

ToggleButton - WAI-ARIA Support

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

The RadToggleButton control has WAI-ARIA support which can be easily enabled by setting its EnableAriaSupport property to true.

The WAI-ARIA attributes are rendered with JavaScript because no HTML document can validate if they are present in the server markup. Therefore, in order to see them, you should inspect the control with the browser dev toolbar and not the page source.

  • DefaultCS.aspx
  • styles.css
<%@ Page Language="c#"  %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" />
    <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 ID="RadToggleButton1" runat="server" AutoPostBack="false" EnableAriaSupport="true" Width="100px">
                <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>

Find Assistance

Help Us Improve

Was this example helpful?