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

Keyboard Support

Keyboard navigation provides users with a fast and efficient way to explore website content using only the keyboard and is a core part of web accessibility. It enables users who rely on assistive technologies or keyboard-only interaction to fully navigate and operate the site structure.

The RadSiteMap keyboard navigation is enabled by default. It follows a logical and intuitive navigation order that reflects the visual hierarchy of the sitemap, allowing users to move between items and activate links without the need for a mouse.

Users can utilize Alt + AccessKey combination ("A" in the Demo's case) to focus the RadSiteMap component.

The RadSiteMap supports the following keyboard shortcuts:

  • Arrow Keys Navigate between sitemap items.
  • Enter Activates the focused sitemap item.
  • Home Moves focus to the first sitemap item.
  • End Moves focus to the last sitemap item.
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs"  Inherits="SiteMap_Examples_KeyboardSupport_DefaultCS" %>

<%@ 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>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <telerik:RadSiteMapDataSource runat="server" ID="RadSiteMapDataSource1" ShowStartingNode="false" SiteMapFile="~/Examples.sitemap" />

    <div class="demo-container">
        <telerik:RadSiteMap runat="server" ID="SiteMap1" DataSourceID="RadSiteMapDataSource1" AccessKey="A"
            MaxDataBindDepth="2" OnNodeDataBound="SiteMap1_NodeDataBound">
            <LevelSettings>
                <telerik:SiteMapLevelSetting Level="0">
                    <ListLayout RepeatColumns="3" AlignRows="true"></ListLayout>
                </telerik:SiteMapLevelSetting>
            </LevelSettings>
        </telerik:RadSiteMap>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance