2 posts, 0 answers
  1. Jake
    Jake avatar
    10 posts
    Member since:
    Sep 2006

    Posted 07 May 2008 Link to this post

    I am trying to prohibit users from entering letters in the date picker. What is the preferred way of going about this without a javascript workaround?

    Thank you.
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 07 May 2008 Link to this post


    Generally speaking, the RadDatePicker has a very powerful parsing engine that enables it to convert most date entry types (including letters) in to actual dates. That makes it a very flexible tool that can accommodate many users. For example, to enter the date "April 15, 2008" in the date picker, I can type:

    April 15 or 4/15 or 4 15 or apr 15

    The only time letters become a problem is if the DatePicker can't parse them. In those cases, you can use Validators to prohibit form submission until users solve the problem. Check out this online demo for help:


    If, though, you don't want any keyboard support, you can use JavaScript to force the calendar date picker or filter the allowed values on key press. I don't think there is a built-in property that will filter out letters, but it is definitely a good idea! I'll make sure this gets added to our idea list.

  3. DevCraft R3 2016 release webinar banner
Back to Top