This is a migrated thread and some comments may be shown as answers.

Preserve previous date

1 Answer 7 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 09 Nov 2011, 07:37 PM
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

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 14 Nov 2011, 06:14 PM
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,
Boyan
the Telerik team

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

Tags
DatePicker
Asked by
Tom
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or