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 Q1 2012 released 04/11/2012
select

ComboBox / First Look

  • select
     
  •  
  • select
  • select

  • RadComboBox for ASP.NET AJAX is a powerful drop-down list AJAX-based control. It has rich client-side capabilities and load-on-demand mechanism for superior performance in heavy-data scenarios. The product introduces a number of advanced features like autocomplete, grid-like multiple columns with headers, etc.

    Key Features

    • Semantic rendering for minimal HTML markup
    • Powerful databinding
    • Rich client-side API
    • AJAX-based load on demand
    • Powerful Auto complete
    • XHTML and Accessibility standards compliancy
    • Search Engine Friendly
    • Extensive design-time support
    • Expand Animations
    • Multicolumn mode combobox
    • Skinned Appearance
    • Custom Attributes
    • Template Support
    • Right to left support


     

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.ComboboxExamplesCS.WhatsNew.DefaultCS"
        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"></qsf:HeadTag>
        <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body class="BODY">
    <form runat="server" id="mainForm" method="post">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
            <qsf:Header runat="server" ID="Header1" NavigationLanguage="C#"></qsf:Header>
            <!-- content start -->
            <div class="example-panel">
                <div class="fields">
                    <ul>
                        <li>
                            <asp:Label runat="server" AssociatedControlID="RadComboBoxProduct">Product:</asp:Label>
                            <telerik:RadComboBox ID="RadComboBoxProduct" runat="server" Height="200px" Width="200px"
                                DropDownWidth="298px" EmptyMessage="Choose a Product" HighlightTemplatedItems="true"
                                EnableLoadOnDemand="true" Filter="StartsWith" OnItemsRequested="RadComboBoxProduct_ItemsRequested">
                                <HeaderTemplate>
                                    <table style="width: 275px" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="width: 177px;">
                                                Product Name</td>
                                            <td style="width: 60px;">
                                                Quantity</td>
                                            <td style="width: 40px;">
                                                Price</td>
                                        </tr>
                                    </table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table style="width: 275px" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="width: 177px;">
                                                <%# DataBinder.Eval(Container, "Text")%>
                                            </td>
                                            <td style="width: 60px;">
                                                <%# DataBinder.Eval(Container, "Attributes['UnitsInStock']")%>
                                            </td>
                                            <td style="width: 40px;">
                                                <%# DataBinder.Eval(Container, "Attributes['UnitPrice']")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </telerik:RadComboBox>
    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="RadComboBoxProduct"
    ErrorMessage="!" CssClass="validator">

                            </asp:RequiredFieldValidator>
                        </li>
                        <li>
                            <asp:Label runat="server" AssociatedControlID="RadComboBoxRegion">Region:</asp:Label>
                            <telerik:RadComboBox ID="RadComboBoxRegion" runat="server" Height="200px" Width="200px"
                                EmptyMessage="Choose a Region" MarkFirstMatch="true" EnableLoadOnDemand="true">
                                <WebServiceSettings Path="Territories.asmx" Method="GetTerritories" />
                            </telerik:RadComboBox>
    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="RadComboBoxRegion"
    ErrorMessage="!" CssClass="validator">

                            </asp:RequiredFieldValidator>
                        </li>
                        <li>
                            <asp:Label runat="server" AssociatedControlID="RadComboBoxDealer">Dealer:</asp:Label>
                            <telerik:RadComboBox ID="RadComboBoxDealer" runat="server" Height="200px" Width="200px"
                                Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false"
                                DataSourceID="SqlDataSource1" DataTextField="CompanyName" DataValueField="SupplierID">
                            </telerik:RadComboBox>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
                                SelectCommand="SELECT [SupplierID], [CompanyName] FROM [Suppliers] ORDER BY [CompanyName]" />
                        </li>
                        <li>
    <asp:Label ID="LabelPaymentMethod" runat="server" AssociatedControlID="RadComboBoxPaymentMethod"
    Text="Payment Method:" />

                            <telerik:RadComboBox ID="RadComboBoxPaymentMethod" runat="server" Width="200px" />
                            <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/ComboBox/Examples/Default/PaymentMethods.xml" />
                        </li>
                    </ul>
    <asp:Button ID="CheckoutButton" runat="server" CssClass="button" Text="Checkout"
    OnClick="CheckoutButton_Click" />

                </div>
                <!-- checkout content start -->
                <table class="your-order" id="OrderTable" runat="server" visible="false">
                    <tbody>
                        <tr>
                            <th>
                                Product:</th>
                            <td>
                                <asp:Label ID="LabelProductName" runat="server" /></td>
                        </tr>
                        <tr>
                            <th>
                                Region:</th>
                            <td>
                                <asp:Label ID="LabelRegionName" runat="server" /></td>
                        </tr>
                        <tr>
                            <th style="vertical-align: top">
                                Dealer:</th>
                            <td>
                                <asp:Label ID="LabelDealerName" runat="server" /></td>
                        </tr>
                        <tr>
                            <th>
                                Payment:</th>
                            <td>
                                <asp:Label ID="LabelPaymentMethodName" runat="server" /></td>
                        </tr>
                        <tr class="price-row">
                            <th>
                                Price:</th>
                            <td>
                                <asp:Literal ID="LabelPriceValue" runat="server" /></td>
                        </tr>
                    </tbody>
                </table>
                <!-- checkout content end -->
            </div>
            <!-- content end -->
            <qsf:Footer runat="server" ID="Footer1"></qsf:Footer>
        </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-2012 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451