Preserve previous date

2 posts, 0 answers
  1. Tom
    Tom avatar
    12 posts
    Member since:
    Sep 2011

    Posted 09 Nov 2011 Link to this post

    In the application I am writing, if you enter an invalid date I want the old value to be presented when you leave the field. Right now the default behavior seems to be to clear the field.

    In other instances I would like to preserve the bad data and highlight the box in some way
  2. Boyan
    Boyan avatar
    758 posts

    Posted 14 Nov 2011 Link to this post

    Hello Tom,

    You can use the ParseDateTimeValue event to handle this scenario. For more info on how to use the event you can check this help article.

    If you are having troubles achieving the desired behavior please let me know and I will provide a sample project.

    Kind regards,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top