Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

ListBox / Keyboard Support

Configuration

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

    • Tab to activate RadListBox
    • Use SHIFT and the arrow keys to select multiple items
    • Use CTRL and the arrow keys to move the active item
    • Press SPACE to select only the active item.
    • Hold CTRL and press SPACE to add the active item to the selection.
    • Press DEL to delete the selected items (if AllowDelete is set to true).
    • Starts with - start typing to highlight the matching items
      • Press esc to clear the mask.
      • Press backspace to remove a single character.
    • First letter - press a key to navigate to a matching item. Subsequent press on the same key will iterate over the matches.
    • Press ctrl + right to transfer to destination
      Press ctrl + left on destination to transfer back to source
    • Press on an item ctrl+shift+up.gif to reorder it upwards
      Press on an item ctrl+shift+down.gif to reorder it downwards

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="C#" %>

    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1" />
        <script runat="server">
            protected void Page_Load(object sender, EventArgs e)
            {
                 RadListBox1.EnableMarkMatches = (ConfigMatch.SelectedIndex == 0);
            }

        </script>
        <style type="text/css">
            #RadListBox1
            {
                margin-left:135px;
            }
            .rlbHeader
            {
                background:none !important;
            }
            .header
            {
                display:block;
                margin:5px 0;
            }
        </style>
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <qsf:Header runat="server" ID="Header1" NavigationLanguage="C#" />
        
        <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
            <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Title="Configuration"
                Orientation="Vertical" Expanded="true">
                        <asp:RadioButtonList runat="server" ID="ConfigMatch" AutoPostBack="true" RepeatLayout="Flow">
                            <asp:ListItem Selected="True">Starts with</asp:ListItem>
                            <asp:ListItem>First letter</asp:ListItem>
                        </asp:RadioButtonList>
            </qsf:ConfiguratorPanel>

            <telerik:RadListBox runat="server" ID="RadListBox1" SelectionMode="Multiple" TabIndex="1" AllowReorder="true"
                AccessKey="y" Height="250" AllowDelete="true" Width="225px" AllowTransfer="true" TransferToID="RadListBox2">
                <ButtonSettings ShowDelete="false" />
                <Items>
                    <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" />
                </Items>
            </telerik:RadListBox>

            <telerik:RadListBox runat="server" ID="RadListBox2" Width="225" Height="250" TabIndex="2" SelectionMode="Multiple">
            </telerik:RadListBox>
        </telerik:RadAjaxPanel>

        <qsf:Footer runat="server" ID="Footer1" />
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451