Hi,
I am using Kendo Validation throughout my ASP.NET MVC project. I have a problem with email-validation which cost me all the evening:
I use this attribute for my C# property
Without Kendo validation, this leads to the following: On validating the Mailaddress, the error message which I defined in the resource file is shown.
Now with Kendo: It seems Kendo overrides this custom message with a Kendo one, something like "<HTML element id> is not a valid mailaddress".
But I need the one I defined in the resource! So, is a way to disable the Kendo default messages for inputs of type email? I know I could do some custom code to get the message from the input element (something like that could work), but I really hope there is a more intelligent way...
Thanks!
I am using Kendo Validation throughout my ASP.NET MVC project. I have a problem with email-validation which cost me all the evening:
I use this attribute for my C# property
[EmailAddress(ErrorMessageResourceType=typeof(Resources.PersonResources), ErrorMessageResourceName = "MailAddressInvalid", ErrorMessage = null)]
public string MailAddress { get; set; }
Without Kendo validation, this leads to the following: On validating the Mailaddress, the error message which I defined in the resource file is shown.
Now with Kendo: It seems Kendo overrides this custom message with a Kendo one, something like "<HTML element id> is not a valid mailaddress".
But I need the one I defined in the resource! So, is a way to disable the Kendo default messages for inputs of type email? I know I could do some custom code to get the message from the input element (something like that could work), but I really hope there is a more intelligent way...
Thanks!