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

WebForms ListBox Overview

  • Argentina
  • Australia
  • Brazil
  • Canada
  • Chile
  • China
  • Egypt
  • England
  • France
  • Germany
  • India
  • Indonesia
  • Kenya
  • Mexico
  • New Zealand
  • South Africa
  • USA
  • Demo Configurator
Source ListBox:
  • Transfer mode:Move
Destination ListBox:

About RadListBox for ASP.NET AJAX

RadListBox is a powerful ASP.NET AJAX control to display a list of items. It allows for multiple selection of items, reorder and transfer between two listboxes. Drag and drop is fully supported as well. You can easily control the appearance by arranging the buttons in different layouts or changing their text. Icons and checkboxes are also supported within the listbox items. The RadListBox implements a highly efficient semantic rendering, which uses list items and CSS instead of tables. As a result the HTML output is significantly reduced, which dramatically improves performance. The control can also be bound to all ASP.NET 2.0 declarative datasources (ObjectDataSource, XmlDataSource, SqlDataSource, etc) as well as the ASP.NET 3.5 LinqDataSource. Binding to XML strings as well as automatic database updates are fully supported. RadListBox control has a rich client-side API and comprehensive set of events guaranteeing full control over various functions performed on the client. You can easily add/delete/update items at the client side and all the changes will be persisted on the server as well. The rich client-side API provides unbeatable performance and desktop-like experience. RadListBox is shipped with a rich set of skins that allow you to easily build slick interfaces with the look-and-feel of Windows Vista, Office 2007, Outlook, etc. The skins can be easily switched using a single property.

The control’s full support for drag-and-drop functionality enables users to transfer and reorder items, as well as perform multiple selection. RadListBox implements a highly efficient semantic rendering, by using list items and CSS instead of tables. This results in significantly reduced HTML output, which dynamically improves performance. It also has a rich client-side API with a comprehensive set of events, guaranteeing full control over various functions performed on the client.

RadListBox and 120+ other controls are part of UI for ASP.NET AJAX, a comprehensive toolset taking care of the common functionality of your application, while leaving you with more time to work on its business logic.

Key Features

  • Rich client-side functionality
  • Drag and Drop Support
  • Checkboxes
  • Load on Demand
  • Templates
  • Advanced Skinning

More about RadListBox for ASP.NET AJAX
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="ListBox.Examples.Overview.DefaultCS" %>

<%@ 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>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ConfigurationPanel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoContainer1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="ConfigurationPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>

    <div class="demo-container size-narrow" id="DemoContainer1" runat="server">
        <div class="wrapper">
            <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBoxSource" Height="200px" Width="230px"
                AllowTransfer="true" TransferToID="RadListBoxDestination"
                 ButtonSettings-AreaWidth="35px" >
                <Items>
                    <telerik:RadListBoxItem Text="Argentina"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Australia"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Brazil"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Canada"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Chile"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="China"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Egypt"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="England"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="France"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Germany"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="India"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Indonesia"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Kenya"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Mexico"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="New Zealand"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="South Africa"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="USA"></telerik:RadListBoxItem>
                </Items>
            </telerik:RadListBox>
            <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBoxDestination" Height="200px" Width="230px"
                 ButtonSettings-AreaWidth="35px" >
            </telerik:RadListBox>
        </div>
    </div>

    <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1">
        <Views>
            <qsf:View>
                <qsf:ConfiguratorColumn runat="server" Title="Source ListBox:" Size="Medium">
                    <ul class="fb-group">
                        <li>
                            <asp:CheckBox ID="AllowTransfer" runat="server" AutoPostBack="True" Checked="True"
                                Text="Allow transfer"></asp:CheckBox></li>
                        <li class="dependant">
                            <qsf:DropDownList runat="server" ID="DDTransferMode" AutoPostBack="true" Label="Transfer mode:">
                                <Items>
                                    <telerik:DropDownListItem Text="Move" Selected="true"></telerik:DropDownListItem>
                                    <telerik:DropDownListItem Text="Copy"></telerik:DropDownListItem>
                                </Items>
                            </qsf:DropDownList>
                        </li>
                        <li class="dependant">
                            <asp:CheckBox ID="AllowTransferDuplicates" runat="server" AutoPostBack="True" Text="Allow duplicates in destination"></asp:CheckBox></li>
                        <li>
                            <asp:CheckBox ID="AllowReorderSource" runat="server" AutoPostBack="True" Text="Allow reorder"></asp:CheckBox></li>
                        <li>
                            <asp:CheckBox ID="AllowMultipleSelection" runat="server" AutoPostBack="True" Text="Allow multiple selection"></asp:CheckBox></li>
                    </ul>
                </qsf:ConfiguratorColumn>
                <qsf:ConfiguratorColumn runat="server" Title="Destination ListBox:" Size="Narrow">
                    <ul class="fb-group">
                        <li>
                            <asp:CheckBox ID="AllowDelete" runat="server" AutoPostBack="True" Checked="True"
                                Text="Allow delete"></asp:CheckBox></li>
                        <li>
                            <asp:CheckBox ID="AllowReorder" runat="server" AutoPostBack="True" Checked="true"
                                Text="Allow reorder"></asp:CheckBox></li>
                    </ul>
                </qsf:ConfiguratorColumn>
            </qsf:View>
        </Views>
    </qsf:ConfiguratorPanel>

    </form>
</body>
</html>

Support & Learning Resources

Find Assistance