This is a migrated thread and some comments may be shown as answers.

RadDatePicker ReadOnly

5 Answers 963 Views
Input
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 13 Nov 2008, 03:53 PM
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.

5 Answers, 1 is accepted

Sort by
0
Missing User
answered on 13 Nov 2008, 04:42 PM
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.
0
Lenny_shp
Top achievements
Rank 2
answered on 17 Nov 2008, 02:12 PM
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
0
Accepted
Missing User
answered on 18 Nov 2008, 12:13 PM
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.
0
shubhangi
Top achievements
Rank 1
answered on 26 Aug 2015, 12:35 PM

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.

0
Eyup
Telerik team
answered on 31 Aug 2015, 09:21 AM
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.
Tags
Input
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Missing User
Lenny_shp
Top achievements
Rank 2
shubhangi
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or