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

WCAG 2.0 and Section 508 Accessibility Compliance

117tutyu45,65446,456 km2 Delete
  118sad223 km2117Delete
119A24,234234,234 km2 Delete
 120AA234,234,234234,234,324 km2119Delete
  121AAA234,234234,234 km2120Delete
    122AAAA3,434234,234 km2121Delete
Validate with WAVE

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

This example demonstrates how you can make Telerik's ASP.NET RadTreeList accessible by leveraging the settings for the different caption and summary properties of the rendered HTML elements.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="VB" AutoEventWireup="false" Inherits="Telerik.TreeListExamplesCSharp.Accessibility.DefaultVB"CodeFile="DefaultVB.aspx.vb"  %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</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 no-bg">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <telerik:RadTreeList RenderMode="Lightweight" ID="RadTreeList1" runat="server" DataSourceID="SqlDataSource1" ExpandCollapseColumnWidth="5px"
            DataKeyNames="LocationID" ParentDataKeyNames="ParentLocationID" PageSize="20" EnableAriaSupport="true"
            AutoGenerateColumns="false" AllowPaging="false" AllowMultiItemSelection="true" AllowSorting="true"
            Summary="Table containing world locations." >
            <PagerStyle ChangePageSizeButtonToolTip="Change Page Size"
                ChangePageSizeComboBoxTableSummary="The table which holds the composite controls for the ChangePageSize RadComboBox control."
                ChangePageSizeComboBoxToolTip="Change Page Size"
                ChangePageSizeTextBoxToolTip="Change Page Size" GoToPageButtonToolTip="Go To Page"
                GoToPageTextBoxToolTip="Go To Page" />
            <ClientSettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                <Selecting AllowToggleSelection="true" AllowItemSelection="true" />
                <ClientMessages ExpandToolTip="Expand" CollapseToolTip="Collapse" />
            </ClientSettings>
            <Columns>
                <telerik:TreeListBoundColumn DataField="LocationID" UniqueName="LocationID" HeaderText="LocationID"
                    ForceExtractValue="Always" ReadOnly="true" HeaderStyle-Width="30px">
                </telerik:TreeListBoundColumn>
                <telerik:TreeListBoundColumn DataField="LocationName" UniqueName="LocationName" HeaderText="Name"
                    HeaderStyle-Width="50px" >
                </telerik:TreeListBoundColumn>
                <telerik:TreeListNumericColumn DataField="Population" UniqueName="Population" HeaderText="Population"
                    DataFormatString="{0:#,#0}" HeaderStyle-Width="50px">
                </telerik:TreeListNumericColumn>
                <telerik:TreeListNumericColumn DataField="Area" UniqueName="Area" HeaderText="Area"
                    DataFormatString="{0:#,# km<sup>2</sup>}" HeaderStyle-Width="50px" >
                </telerik:TreeListNumericColumn>
                <telerik:TreeListBoundColumn DataField="ParentLocationID" UniqueName="ParentLocationID"
                    HeaderText="ParentID" ReadOnly="true" HeaderStyle-Width="50px" ForceExtractValue="Always">
                </telerik:TreeListBoundColumn>
                <telerik:TreeListButtonColumn UniqueName="DeleteCommandColumn" Text="Delete" CommandName="Delete"
                    HeaderStyle-Width="50px" HeaderText="Delete column" ButtonType="LinkButton">
                </telerik:TreeListButtonColumn>
            </Columns>
        </telerik:RadTreeList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString35 %>"
            SelectCommand="SELECT [LocationID], [LocationName], [Population], [Area], [ParentLocationID] FROM [WorldLocations]"
            DeleteCommand="DELETE FROM [WorldLocations] WHERE [LocationID] = @LocationID"
            InsertCommand="INSERT INTO [WorldLocations] ([LocationName], [Population], [Area], [ParentLocationID]) VALUES (@LocationName, @Population, @Area, @ParentLocationID)"
            UpdateCommand="UPDATE [WorldLocations] SET [LocationName] = @LocationName, [Population] = @Population, [Area] = @Area, [ParentLocationID] = @ParentLocationID WHERE [LocationID] = @LocationID">
            <DeleteParameters>
                <asp:Parameter Name="LocationID" Type="Int32"></asp:Parameter>
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="LocationName" Type="String"></asp:Parameter>
                <asp:Parameter Name="Population" Type="Int64"></asp:Parameter>
                <asp:Parameter Name="Area" Type="Int64"></asp:Parameter>
                <asp:Parameter Name="ParentLocationID" Type="Int32"></asp:Parameter>
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="LocationName" Type="String"></asp:Parameter>
                <asp:Parameter Name="Population" Type="Int64"></asp:Parameter>
                <asp:Parameter Name="Area" Type="Int64"></asp:Parameter>
                <asp:Parameter Name="ParentLocationID" Type="Int32"></asp:Parameter>
                <asp:Parameter Name="LocationID" Type="Int32"></asp:Parameter>
            </UpdateParameters>
        </asp:SqlDataSource>
    </telerik:RadAjaxPanel>
    </div>
    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Validate with WAVE</asp:LinkButton>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance