DateTimePicker restore default value after enter invalid character

3 posts, 0 answers
  1. NGA TQ
    NGA TQ avatar
    6 posts
    Member since:
    Apr 2010

    Posted 03 Oct 2011 Link to this post

     Hi Telerik Team,
    Can I restore default value after enter invalid character in DateTimePicker
    For example..

    The first, a datetimepicker has value: '01/01/2011'
    The second, input some invalid value : 'abcabc'

    I want my datetimepicker display value '01/01/2011'

  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 06 Oct 2011 Link to this post

    Hello Nga Tq,

    This can be easily achieved using the ParseDateTimeValue event. I have attached a sample project that show how it can be achieved.

    All the best,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. NGA TQ
    NGA TQ avatar
    6 posts
    Member since:
    Apr 2010

    Posted 07 Oct 2011 Link to this post

    We tried your solution and it do work.

    Thanks for your quick response.
Back to Top