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

    WebForms DateTimePicker Overview

    Automatic replies - I’m away ...


    • Demo Configurator
    • Popup Settings for StartTime picker

    This demo illustrates the RadDateTimePicker for ASP.NET AJAX control.

    About RadDateTimePicker for ASP.NET AJAX

    RadDateTimePicker control is a highly configurable component for displaying and selecting date and time values. The datetime picker facilitates the interaction between the user and your web site and saves you a lot of client-side scripting. Features include adjacent calendar and time list preview, month year fast navigation, shared calendar and time views, context menus, a set of built-in skins and many more.

    RadDateTimePicker 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

    • Flexible client-side API
    • The ability to select date and time ndependently.
    • Keyboard navigation.
    • Visual Appeal - ships with rich set of skins for easy and consistent styling.

    More about RadDateTimePicker for ASP.NET AJAX
    • DefaultVB.aspx
    • DefaultVB.aspx.vb
    • styles.css
    <%@ Page CodeFile="DefaultVB.aspx.vb" Language="vb" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Calendar.Functionality.CustomDatePicker.DefaultVB" %>
     
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <!DOCTYPE html>
    <head runat="server">
        <title>Telerik ASP.NET Example</title>
        <link href="styles.css" rel="stylesheet" />
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
     
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ConfigurationPanel1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="containerDiv" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                        <telerik:AjaxUpdatedControl ControlID="ConfigurationPanel1"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <div class="header size-thin">Automatic replies - I’m away ...</div>
        <div class="demo-container size-thin" runat="server" id="containerDiv">
            <div style="padding-bottom: 5px;">
                <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="true" GroupName="Group1" />
                <asp:Label ID="Label1" runat="server" AssociatedControlID="RadioButton1" Text="Do not send automatic replies"></asp:Label>
            </div>
            <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="true" GroupName="Group1" Checked="true" />
            <asp:Label ID="Label2" runat="server" AssociatedControlID="RadioButton2" Text="Send automatic replies"></asp:Label>
            <br />
            <div id="timeslot">
                <asp:CheckBox ID="CheckBox1" Text="Only send during this time range:" runat="server" Checked="true" />
                <telerik:RadDateTimePicker RenderMode="Lightweight" ID="RadDateTimePicker1" Width="100%" runat="server" DateInput-Label="Start Time">
                </telerik:RadDateTimePicker>
                <br />
                <telerik:RadDateTimePicker RenderMode="Lightweight" ID="RadDateTimePicker2" ShowPopupOnFocus="true" Width="100%" runat="server" DateInput-Label="End Time">
                </telerik:RadDateTimePicker>
            </div>
            <hr class="demo-separator" />
            <asp:Label ID="Label4" runat="server" AssociatedControlID="txt1" Text="Automatically reply once for each sender with the following messages:"></asp:Label>
            <asp:TextBox runat="server" ID="txt1" TextMode="MultiLine" class="replyTextarea"></asp:TextBox>
            <telerik:RadButton RenderMode="Lightweight" ID="RadButton1" runat="server" Text="Ok" Width="80px"></telerik:RadButton>
            <telerik:RadButton RenderMode="Lightweight" ID="RadButton2" runat="server" Text="Cancel" Width="80px"></telerik:RadButton>
            <telerik:RadFormDecorator RenderMode="Lightweight" ID="RadFormDecorator1" runat="server" DecorationZoneID="containerDiv" EnableRoundedCorners="false" />
        </div>
        <asp:Panel ID="Panel1" runat="server">
            <qsf:ConfiguratorPanel ID="ConfigurationPanel1" runat="server" Orientation="Vertical"
                Expanded="true">
                <Views>
                    <qsf:View Title="Localization">
                        <qsf:ConfiguratorColumn ID="ConfiguratorColumn6" runat="server" Size="Narrow">
                            <ul class="fb-group">
                                <li>
                                    <qsf:ComboBox ID="rcbCulture" runat="server" AllowCustomText="false" Label="Choose Language for StartTime picker" AutoPostBack="true" Size="Medium">
                                        <Items>
                                            <telerik:RadComboBoxItem Value="en-US" Text="English"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="de-DE" Text="German"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="fr-FR" Text="French"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="af-ZA" Text="Afrikaans - South Africa"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="sq-AL" Text="Albanian - Albania"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="hy-AM" Text="Armenian - Armenia"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="be-BY" Text="Belarusian - Belarus"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="bg-BG" Text="Bulgarian - Bulgaria"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="ca-ES" Text="Catalan - Catalan"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="hr-HR" Text="Croatian - Croatia"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="cs-CZ" Text="Czech - Czech Republic"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="da-DK" Text="Danish - Denmark"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="nl-BE" Text="Dutch - Belgium"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="nl-NL" Text="Dutch - The Netherlands"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="en-AU" Text="English - Australia"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="en-CA" Text="English - Canada"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="fr-FR" Text="French - France"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="hu-HU" Text="Hungarian - Hungary"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="ro-RO" Text="Romanian - Romania"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="sw-KE" Text="Swahili - Kenya"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="sv-FI" Text="Swedish - Finland"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="sv-SE" Text="Swedish - Sweden"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Value="tt-RU" Text="Tatar - Russia"></telerik:RadComboBoxItem>
                                        </Items>
                                    </qsf:ComboBox>
                                </li>
     
                            </ul>
                        </qsf:ConfiguratorColumn>
                    </qsf:View>
                    <qsf:View Title="Date Settings">
                        <qsf:ConfiguratorColumn ID="ConfiguratorColumn1" runat="server" Size="Narrow">
                            <ul class="fb-group">
                                <li>Date settings for StartTime picker
                                </li>
                                <li>
                                    <qsf:DatePicker ID="rdpMinDate" runat="server" Label="MinDate" AutoPostBack="true"
                                        DateInput-EmptyMessage="MinDate" MinDate="01/01/1000" MaxDate="01/01/3000" Size="Medium">
                                    </qsf:DatePicker>
                                </li>
                                <li>
     
                                    <qsf:DatePicker ID="rdpMaxDate" runat="server" Size="Medium" Label="MaxDate" AutoPostBack="true"
                                        DateInput-EmptyMessage="MaxDate" MinDate="01/01/1000" MaxDate="01/01/3000">
                                    </qsf:DatePicker>
                                </li>
                                <li>
     
                                    <qsf:ComboBox ID="rcbDateFormat" runat="server" Label="DateFormat" AutoPostBack="true" Size="Medium">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="dd MMM HH:mm" Value="dd MMM HH:mm" Selected="true"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="dd h:m s" Value="dd h:m s"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="hh:mm ss tt" Value="hh:mm ss tt"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="yyyy/dd/MMM/ H:mm ss" Value="yyyy/dd/MMM/ H:mm ss"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="dd/MMM/yy HH:mm ss" Value="dd/MMM/yy HH:mm ss"></telerik:RadComboBoxItem>
                                        </Items>
                                    </qsf:ComboBox>
                                </li>
     
                            </ul>
                        </qsf:ConfiguratorColumn>
     
     
                    </qsf:View>
                    <qsf:View Title="Popup Settings">
     
                        <qsf:ConfiguratorColumn ID="ConfiguratorColumn3" runat="server" Size="Wide">
                            <ul class="fb-group">
                                <li>
                                    <asp:Label ID="Label3" Text="Popup Settings for StartTime picker" runat="server"></asp:Label></li>
                                <li>
     
                                    <qsf:ComboBox ID="rcbPopupAnimation" runat="server" AutoPostBack="true" Label="Popup animation " AllowCustomText="false" Size="Medium">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="Fade" Value="Fade" Selected="true"></telerik:RadComboBoxItem>
                                            <telerik:RadComboBoxItem Text="Slide" Value="Slide"></telerik:RadComboBoxItem>
                                        </Items>
                                    </qsf:ComboBox>
                                </li>
     
     
                            </ul>
                        </qsf:ConfiguratorColumn>
                        <qsf:ConfiguratorColumn ID="ConfiguratorColumn4" runat="server" Size="Narrow">
                            <ul class="fb-group">
                                <li>
     
                                    <qsf:TextBox ID="riTooltip" runat="server" AutoPostBack="true" Label="Date PopUp Tooltip"
                                        Size="Wide">
                                    </qsf:TextBox>
                                </li>
     
                                <li>
                                    <qsf:TextBox ID="riTooltip1" runat="server" AutoPostBack="true" Label="Time PopUp Tooltip"
                                        Size="Wide">
                                    </qsf:TextBox>
     
                                </li>
     
                            </ul>
                        </qsf:ConfiguratorColumn>
                        <qsf:ConfiguratorColumn ID="ConfiguratorColumn2" runat="server" Size="Wide">
                            <ul class="fb-group">
     
                                <li>
                                    <span class="checkbox">
                                        <asp:CheckBox runat="server" ID="chkEnableShadows" Checked="true" Text="Enable shadows"
                                            AutoPostBack="True" OnCheckedChanged="chkEnableShadows_CheckedChanged"></asp:CheckBox></span>
                                </li>
                                <li>
                                    <span class="checkbox size-wide">
                                        <asp:CheckBox ID="chkShowButton" runat="server" Checked="true" AutoPostBack="true"
                                            Text="Show date popup button"></asp:CheckBox></span>
                                </li>
                                <li>
                                    <span class="checkbox size-wide">
                                        <asp:CheckBox ID="chkShowPopupOnFocus" runat="server" Checked="true" AutoPostBack="true"
                                            Text="Show popup on textbox focus"></asp:CheckBox></span>
                                </li>
                                <li>
                                    <span class="checkbox size-wide">
                                        <asp:CheckBox ID="chkEnableScreenBoundaryDetection" runat="server" Checked="true"
                                            AutoPostBack="true" Text="Enable screen boundary detection"></asp:CheckBox></span>
                                </li>
                            </ul>
                        </qsf:ConfiguratorColumn>
                    </qsf:View>
                </Views>
            </qsf:ConfiguratorPanel>
        </asp:Panel>
     
        </form>
    </body>
    </html>

    Support & Learning Resources

    Find Assistance