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

Keyboard Support

Please, select some options:
Event log

This example demonstrates how you can use the keyboard to control a CheckBoxList. You can focus a checkbox by using the Tab key if you set the TabIndex property of CheckBoxList according to the desired flow of the page.

In addition, you can use a shortcut if you set the AccessKey property. Press Alt+AccessKey in IE and Chrome, Shift+Alt+AccessKey for Firefox and Shift+Esc+AccessKey for Opera. The checkbox list in this example has an AccessKey property set to A.

To execute a selected radio button press the Enter or Space key when it is focused.

Note: By default tab-access is disabled in Safari. To enable it, check "Preferences > Advanced > Press tab to highlight each item on the page".

  • DefaultCS.aspx
  • scripts.js
<%@ Page Language="C#" AutoEventWireup="true"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ 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>
    <script src="scripts.js" type="text/javascript"></script>
</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">
        <div>Please, select some options:</div>
        <telerik:RadCheckBoxList runat="server" ID="CheckBoxList1" AutoPostBack="false" ToolTip="CheckBoxList tooltip" TabIndex="1" AccessKey="A">
            <ClientEvents OnItemClicked="telerikDemo.OnClientClicked" />
            <Items>
                <telerik:ButtonListItem Text="Option 1" Value="1"/>
                <telerik:ButtonListItem Text="Option 2" Value="2" />
                <telerik:ButtonListItem Text="Option 3" Value="3" />
            </Items>
        </telerik:RadCheckBoxList>
    </div>
    <qsf:EventLogConsole ID="EventLogConsole" runat="server" AllowClear="true"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance