telerik datepicker configuration

maqskywalker used Ask the Experts™

I'm using the telerik ui for 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
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial