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

Input / First Look

  • select



  • The following example demonstrates several instances of RadInput textboxes. In case your scenario requires a lot of textbox controls on the page, it is recommended to use RadInputManager for better performance.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="false" Inherits="Telerik.InputExamplesCS.Common.OrderForm.DefaultCS" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ 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" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
        <link rel="stylesheet" type="text/css" href="ExampleFiles/styles.css" />
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
        <qsf:Header runat="server" ID="Header1" NavigationLanguage="C#" AccessibilityLevel="AAA">
        </qsf:Header>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="CreditCards">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="ButtonOrder">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="Label1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <!-- content start -->
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons"
            DecorationZoneID="Panel1" />
        <asp:Panel ID="Panel1" runat="server" Width="699px" Height="238px">
            <ul class="MyWrapper">
                <li>
                    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Value="99.99" Type="Currency"
                        Label="Price" LabelCssClass="MyLabel" Width="230px" />
                </li>
                <li class="liright">
                    <label for="RadTextBox1_text" class="MyLabel">
                        Billing Address</label>
                    <telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="MultiLine" Rows="5"
                        Columns="5" EmptyMessage="Type your billing address here" Height="127px" Width="175px" />
                </li>
                <li class="licombo">
                    <label class="MyLabel" for="CreditCards">
                        Type of Card</label>
                    <telerik:RadComboBox ID="CreditCards" runat="server" AutoPostBack="True" OnSelectedIndexChanged="CreditCards_SelectedIndexChanged"
                        Width="126px">
                        <Items>
                            <telerik:RadComboBoxItem Text="Visa" Selected="true" />
                            <telerik:RadComboBoxItem Text="Mastercard" />
                            <telerik:RadComboBoxItem Text="American Express" />
                            <telerik:RadComboBoxItem Text="Discover" />
                            <telerik:RadComboBoxItem Text="JCB" />
                            <telerik:RadComboBoxItem Text="Diners Club" />
                        </Items>
                    </telerik:RadComboBox>
                </li>
                <li>
                    <telerik:RadMaskedTextBox ID="RadMaskedTextBox2" runat="server" Mask="4###############"
                        PromptChar="_" Label="Card Number" LabelCssClass="MyLabel" Width="230px" />
                </li>
                <li>
                    <telerik:RadDateInput ID="ExpirationDate" runat="server" DateFormat="d" SelectedDate="2010-11-15"
                        Label="Expiration Date" LabelCssClass="MyLabel" Width="230px" />
                </li>
                <li class="libuttons">
                    <asp:Button ID="ButtonOrder" runat="server" Text="Order Now" OnClick="ButtonOrder_Click" />
                    <input type="reset" value="Reset" />
                </li>
            </ul>
        </asp:Panel>
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" />
        <!-- content end -->
        <qsf:Footer runat="server" ID="Footer1" AdditionalCodeViewerFiles="~/Input/Examples/Common/OrderForm/ExampleFiles/styles.css" />
        </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