telerik datepicker configuration

http://demos.telerik.com/aspnet-mvc/datepicker

I'm using the telerik ui for asp.net mvc datepicker.

Is there a way to prevent user from typing inside the textbox?
So basically they must click on the calendar icon and use the datepicker to select the date
LVL 1
maqskywalkerAsked:
Who is Participating?
 
zephyr_hex (Megan)Connect With a Mentor DeveloperCommented:
I'm not familiar with that plugin, but have you tried making the textbox readonly ?  This is a technique I've used with other date pickers.

Be aware that readonly inputs don't get sent with POST.  Two ways to address this would be to use jQuery to assign the date value to a hidden input (which will get sent with POST), or, use jQuery to remove the readonly attribute on form submission.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.