PushButton - WAI-ARIA Support

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

The RadPushButton 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
<%@ Page Language="c#"  %>

<%@ 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>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container">
            <telerik:RadPushButton runat="server" ID="RadPushButton1"
                EnableAriaSupport="true"
                Text="Select Location"
                ToolTip="ToolTip of the Push Button">
                <Icon CssClass="rbOpen" />
            </telerik:RadPushButton>
        </div>
    </div>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?