Validation on invalid date

2 posts, 0 answers
  1. Fredrik
    Fredrik avatar
    58 posts
    Member since:
    Mar 2013

    Posted 19 Aug 2013 Link to this post

    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?


  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 20 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top