Completed
Last Updated: 07 Feb 2017 14:08 by ADMIN
Vincenzo
Created on: 05 Dec 2011 15:07
Category: Kendo UI for jQuery
Type: Feature Request
54
Validator: Unobtrusive Support for System.ComponentModel.DataAnnotations
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.
7 comments
ADMIN
Petyo
Posted on: 07 Feb 2017 14:08
This got implemented some time ago - http://docs.telerik.com/aspnet-mvc/getting-started/validation
Mantvydas
Posted on: 13 Jan 2015 14:49
Need kendo validation for EmailAddressAttribute. :(
Oliver
Posted on: 08 Aug 2013 21:36
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.")]
       
Michael Sogos
Posted on: 18 Jul 2012 09:17
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.
James
Posted on: 20 Apr 2012 13:27
Here here!
Michael
Posted on: 23 Mar 2012 22:14
This is very important !!!
Vesselin
Posted on: 20 Feb 2012 01:02
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?