RadDatePicker ReadOnly

6 posts, 1 answers
  1. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 13 Nov 2008 Link to this post

    1. How do I set RadDatePicker to ReadOnly mode so that it prints better (Enabled = False prints light).
    2. How do I hide the calendar icon in ReadOnly mode?    RadComboBox has .ShowToggleImage = False but not RadDatePicker.
  2. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 13 Nov 2008 Link to this post

    Hi Lenny,


    You can use RadDateInput instead RadDatePicker. Here is an example:

     
                <telerik:RadDateInput ReadOnly="true" ID="RadDateInput1" runat="server"
                </telerik:RadDateInput> 

    Please, review the following online demo:
    http://demos.telerik.com/aspnet/prometheus/Input/Examples/RadDateInput/FirstLook/DefaultCS.aspx

    Regards,
    Plamen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 17 Nov 2008 Link to this post

    The use of this in the next post was the solution.   Note that just setting EnableTyping to false still allows user to use the calendar dropdown so you need to disable or hide it.

    CType(ctl, RadDatePicker).EnableTyping = False

    CType(ctl, RadDatePicker).DatePopupButton.Visible = False
    or
    CType(ctl, RadDatePicker).DatePopupButton.Enabled = False
  5. Answer
    Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 18 Nov 2008 Link to this post

    Hi Lenny_shp,

    Actually there is a EnableTyping property which is part of the RadDatePicker. Here is an example:

     
            <telerik:RadDatePicker  
                ID="RadDatePicker1"  
                runat="server"  
                EnableTyping="false"
            </telerik:RadDatePicker> 


    EnableTyping - Enables or disables typing in the date input box.  

    Regards,
    Plamen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. shubhangi
    shubhangi avatar
    19 posts
    Member since:
    Aug 2015

    Posted 26 Aug 2015 Link to this post

    How can disable date and time which is less than the current datetime in Rad date time calendar control. Referering below code.

      <telerik:RadDateTimePicker ID="StartInput" SelectedDate='<%# Bind("Start") %>' runat="server">
                                            <Calendar ShowRowHeaders="false" runat="server"></Calendar>
                                        </telerik:RadDateTimePicker>

     Please can anyone help in to this.

  7. Eyup
    Admin
    Eyup avatar
    3009 posts

    Posted 31 Aug 2015 Link to this post

    Hello Shubhangi,

    You can achieve this requirement by setting the MinDate property:
    <telerik:RadDateTimePicker ... MinDate='<%# Eval("OrderDate") %>'>

    Hope this helps. Please give it a try and let me know if it works for you.

    Kind regards,
    Eyup
    the Telerik team
    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017