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

Keyboard Support

Split Button
  • Command 1
  • Command 1
  • Command 3
This is a button with "AccessKey" set to "M". Using the AccessKey will directly click the button. You can also use the Tab key to focus it and Space/Enter to execute its click. When the button is focused, you can use Alt + Down Arrow to open the button's context menu.
Event log

This example demonstrates how you can use the keyboard to control a RadSplitButton. You can focus a button by using the Tab key if you set the TabIndex property of RadSplitButton 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.

Once the SplitButton is focused, you can use the Alt + Down Arrow to open and focus the button's ContextMenu. Then, you can leverage the ContextMenu's keyboard support.

To execute a selected Command 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-containers">
        <div class="demo-container">
            <telerik:RadSplitButton runat="server" ID="RadPushButton1"
                TabIndex="1"
                AccessKey="M"
                AutoPostBack="false"
                Text="Split Button"
                OnClientClicked="telerikDemo.OnClientClicked">
                <ContextMenu>
                    <Items>
                        <telerik:RadMenuItem Text="Command 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Command 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Command 3"></telerik:RadMenuItem>
                    </Items>
                </ContextMenu>
            </telerik:RadSplitButton>
        </div>
    </div>
    <qsf:MessageBox ID="InformationBox1" Icon="Info" Type="Info" runat="server">
        This is a button with "AccessKey" set to "M". Using the AccessKey will directly click the button. You can also use the Tab key to focus it and Space/Enter to execute its click. When the button is focused, you can use Alt + Down Arrow to open the button's context menu.
    </qsf:MessageBox>
    <qsf:EventLogConsole ID="EventLogConsole" runat="server" AllowClear="true"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance