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

Disable manual input and only allow pop-up selection?

3 Answers 747 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Michael Malone
Top achievements
Rank 1
Michael Malone asked on 18 Jun 2015, 06:37 PM
How can I disable the user from manually entering values with the keyboard? Selections should only come from the pop-up values. 

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 19 Jun 2015, 08:29 AM
Hello,

You can use the ReadOnly property of the DateInput component to achieve the desired functionality.

Hope this helps.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Michael Malone
Top achievements
Rank 1
answered on 19 Jun 2015, 01:01 PM
I'm sorry, I told you wrong - this is the RadTimePicker, not the RadDateTimePicker. I tried setting RadTimePicker.DateInput.ReadOnly = true in my RadTimePicker but it disabled the popup too. Any ideas?
0
Maria Ilieva
Telerik team
answered on 24 Jun 2015, 09:12 AM
Hi Michael,

Try setting the markup like this:
<telerik:RadTimePicker runat="server" DateInput-ReadOnly="true" ID="RadTimePicker1"></telerik:RadTimePicker>


Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DateTimePicker
Asked by
Michael Malone
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Michael Malone
Top achievements
Rank 1
Share this question
or