ASP NET MVC provides jquery.validate.unobtrusive validation that, using jQuery validation, let us set validation attributes into model class. http://weblogs.asp.net/mikaelsoderstrom/archive/2010/10/06/unobtrusive-validation-in-asp-net-mvc-3.aspx Would be nice if it may work also with kendo ui validation.
This got implemented some time ago - http://docs.telerik.com/aspnet-mvc/getting-started/validation
Need kendo validation for EmailAddressAttribute. :(
Adding my vote to support ASP.NET MVC DataType attributes on the object model to save us the effort of writing up Regular Expressions for client side validation e.g. [DataType(DataType.Url)] rather than what I currently have (!): [RegularExpression(@"^[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$", ErrorMessage = "The Website URL is invalid.")]
You can improve the out-of-the-box MVC data annotation, for example we need to have a regular expression to validate email address, but could be very useful if kendoui implement its own regex and deduce when apply that regex with <DataType(DataType.EmailAddress)> or with its own new DataAnnotation Attributes Take a look to http://dataannotationsextensions.org for an like example.
Here here!
This is very important !!!
When using the standard ASP.NET MVC Helpers (@Html.EditorFor(), @Html.ValidationMessageFor()) in conjunction with DataAnnotations, the validation attributes that get added to the input controls are not what Kendo Validator works with. Wouldn't it be possible to provide a file similar to jquery.validate.unobtrusive (Kendo.Validator.MVC?;) that makes Kendo Validator works unobtrusively when using DataAnnotations or do you have a recommendation on how to tackle this?