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

Validation on invalid date

1 Answer 39 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 2
Fredrik asked on 19 Aug 2013, 07:47 AM
Hello.
I want to use the validation tooltip to display all errors with the datetimepicker.
at the moment when a user types an invalud date "abc" there comes an error popup above the control.
Insted i want to display the error in coherence with the rest of the validation framework.

is it possible to accheive this?


1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 20 Aug 2013, 12:05 PM
Hello Fredrik,

As far I understand your question you want to achieve something like this online DateTimePicker example, but in the ErrorToolTip. Unfortunately the desired behavior cannot be achieved as the validation in example is done after the value is parsed and the ToolTip validation is done live depending on chars in the input string. However you can check the this article from our documentation and implement custom ToolTip and then by using custom logic to check the CurrentDateTimeText property and to show different ToolTip depending on the entered text.

Hope this helps. If you have any other questions let us know.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DateTimePicker
Asked by
Fredrik
Top achievements
Rank 2
Answers by
Kalin
Telerik team
Share this question
or