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

Asynchronous Validation

1 Answer 55 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 01 Mar 2011, 04:28 PM
We need to be able to enter shorthand date formats or identifiers which can be validated asynchronously via a web service which does not seem to be possible with the current validation flow. We do not want this validation to occurr on every key press but instead when the control loses focus / return is pressed.

For example, the user would need to be able to enter "1M" for 1 month which we need to pass to a backend server which calculates the closest appropriate valid date and returns this, from which we can then populate the date picker control. Whilst this is happening the control currently displays the default previous valid date instead of the entered text of "1M" which we would like the control to display until the result is received.

Additionally we would like the ability to display this custom text in the date picker instead of the actual date. Is it possible to override the text box?

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 03 Mar 2011, 10:03 AM
Hello Andrew,

Follow the attached sample application.

Kind regards,
Kaloyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DatePicker
Asked by
Andrew
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or