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

Keyboard Support

  • Amsterdam
  • Barcelona
  • Bonn
  • Boston
  • Brussels
  • Dallas
  • Denver
  • Dublin
  • Liverpool
  • London
  • Madrid
  • Miami
  • Moscow
  • New York
  • Oslo
  • Paris
  • San Francisco
  • Seattle
  • Sofia
  • St.Paul
  • Demo Configurator

  • Command keyAlt

Keyboard Support

Keyboard support is comprised of command key, focus key, and keyboard navigation.

RadListBox will seamlessly switch between mouse and keyboard navigation.

In order to configure keyboard support with RadListBox its KeyboardNaviagationSettings should be set:

RadListBox fully supports keybord navigation: selecting, deleting, moving and reordering items.


        <telerik:RadListBox ID="RadListBox1" runat="server" >
            <KeyboardNavigationSettings CommandKey="Alt" FocusKey="A" />
                <telerik:RadListBoxItem Text="Amsterdam" >
                <telerik:RadListBoxItem Text="Barcelona" >

The KeyboardNavigationSettings exposes two properties to configure the keyboard combination that sets focus to the control:

  • FocusKey: An upper-case letter or number.
  • CommandKey: Ctrl , Alt, Shift, or any combination of two of these keys.

When there are multiple ListBoxes on a given page, each of them may have a different activation combination.

In this particular example, the [CommandKey] and the [FocusKey] for the first ListBox can be customized in the Demo Configurator.

Note: It is recommended to avoid [CommandKey] + [FocusKey] combinations matching keyboard shortcuts used in the browsers. If the combination coincides with an existing shortcut the control may be unable to focus.

Pressing [CommandKey] + [FocusKey]) puts the focus on the ListBox allowing you to navigate the items:

Arrow Navigation / Selection

  • Down Arrow / Up Arrow keys select next/previous item.
  • Shift + Arrow Keys selects multiple items.
  • Ctrl + Space adds currently active item to the selection.
  • Del deletes currently selected item (if AllowDelete is set to true).


  • Ctrl + Right Arrow transfers to destination.
  • Ctrl + Left Arrow on destination transfers back to source.


  • Ctrl + Shift + Up Arrow reorders upwards.
  • Ctrl + Shift + Down Arrow reorders downwards.

Mark Matches

Starts with

  • Start typing to highlight the matching items.
  • Esc clears the mask.
  • Backspace removes a single character.

First letter

  • Any key navigates to a matching item.
  • Subsequent press on the same key iterates over the matches.
  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="VB"  AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="ListBox.Examples.Functionality.KeyboardSupport.DefaultVB" %>

<!DOCTYPE html>
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />

    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />

    <div class="demo-container size-narrow" id="DemoContainer1" runat="server">
        <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBox1" SelectionMode="Multiple"
            AllowReorder="true" Height="250" AllowDelete="true" Width="240"
            AllowTransfer="true" TransferToID="RadListBox2" TabIndex="1">
            <ButtonSettings ShowDelete="false" />
                <telerik:RadListBoxItem Text="Amsterdam" />
                <telerik:RadListBoxItem Text="Barcelona" />
                <telerik:RadListBoxItem Text="Bonn" />
                <telerik:RadListBoxItem Text="Boston" />
                <telerik:RadListBoxItem Text="Brussels" />
                <telerik:RadListBoxItem Text="Dallas" />
                <telerik:RadListBoxItem Text="Denver" />
                <telerik:RadListBoxItem Text="Dublin" />
                <telerik:RadListBoxItem Text="Liverpool" />
                <telerik:RadListBoxItem Text="London" />
                <telerik:RadListBoxItem Text="Madrid" />
                <telerik:RadListBoxItem Text="Miami" />
                <telerik:RadListBoxItem Text="Moscow" />
                <telerik:RadListBoxItem Text="New York" />
                <telerik:RadListBoxItem Text="Oslo" />
                <telerik:RadListBoxItem Text="Paris" />
                <telerik:RadListBoxItem Text="San Francisco" />
                <telerik:RadListBoxItem Text="Seattle" />
                <telerik:RadListBoxItem Text="Sofia" />
                <telerik:RadListBoxItem Text="St.Paul" />

        <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBox2" Width="240" Height="250"
            SelectionMode="Multiple" TabIndex="2">

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="ConfiguratorPanel1">
                    <telerik:AjaxUpdatedControl ControlID="DemoContainer1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="ConfiguratorPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />

    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />

    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
            function validateFocusKey(source, arguments) {
                var maskedTextBox = $find("<%= RadMaskedTextBoxFocusKey.ClientID %>");
                var textBoxValue = maskedTextBox.get_textBoxValue().trim();

                if (textBoxValue.length != 1) {
                    arguments.IsValid = false;

                var keyCode = textBoxValue.charCodeAt(0);

                if (keyCode < 65 || keyCode > 90) {
                    arguments.IsValid = false;
                arguments.IsValid = true;

    <qsf:ConfiguratorPanel runat="server" ID="ConfiguratorPanel1">
                <qsf:ConfiguratorColumn ID="ConfiguratorColumn1" runat="server" Size="Narrow">
                    <qsf:RadioButtonList runat="server" ID="ConfigMatch" AutoPostBack="true">
                        <asp:ListItem Text="Starts with" Selected="True" />
                        <asp:ListItem Text="First letter" />
                <qsf:ConfiguratorColumn ID="ConfiguratorColumn2" runat="server" Size="Wide">

                    <ul class="fb-group">
                            <qsf:DropDownList runat="server" ID="DropDownListCommandKey"
                                Label="Command key" />
                            <qsf:MaskedTextBox runat="server" ID="RadMaskedTextBoxFocusKey"
                                Label="Focus key" />
                            <asp:CustomValidator ID="CustomValidator2" runat="server"
                                Text="* Please type a valid uppercase Latin letter"
                                ClientValidationFunction="validateFocusKey" />


Support & Learning Resources

Find Assistance