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

Prevent user input

3 Answers 55 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Matteo
Top achievements
Rank 1
Matteo asked on 18 Jul 2012, 02:52 PM
Hi all,

I couldn't find a solution into the forum.

How can I prevent from writing into the control box?

I'd like to allow the user to - only - set the date from the calendar panel.

Thanks a lot.

Matteo

3 Answers, 1 is accepted

Sort by
0
Matteo
Top achievements
Rank 1
answered on 30 Jul 2012, 10:09 AM
bumped
0
OnaBai
Top achievements
Rank 2
answered on 05 Sep 2012, 08:37 AM
Try adding readonly attribut to the input field. i.e.:
HTML:
<input id="cal" readonly="readonly"/>
JavaScript initialization: 
$("#cal").kendoDatePicker({});

0
Matteo
Top achievements
Rank 1
answered on 21 Sep 2012, 03:34 PM
Yes it works.
Thanks OnaBai
Tags
Date/Time Pickers
Asked by
Matteo
Top achievements
Rank 1
Answers by
Matteo
Top achievements
Rank 1
OnaBai
Top achievements
Rank 2
Share this question
or