This is a migrated thread and some comments may be shown as answers.
Client side validation not working with Ajax
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 25 Apr 2013, 12:25 PM
Hi,
I have property i my viewmodel: Email with attribute: [Email(ErrorMessage = "not a valid email address")]
The attribute comes from DataAnnotationsExtensions.
The client error message shows up when using Server side binding but not when using Ajax.

How do I enable client side validation when using Ajax?

Regards,
Mattias

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Apr 2013, 12:01 PM
Hello Mattias,

I posted my reply in the support ticket with the same question. For convenience I am pasting it below:

The email unobtrusive validation is not supported because it is not added by default. In order to validate the email on the client, you should either use the RegularExpressionAttribute or extend the Kendo Validator as demonstrated in the custom validation demo in the examples project. 

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Mattias
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or