I was wondering if it is possible to use Kendo's Validation to achieve something similar to Microsoft's Unobtrussive ValidatIon:
http://weblogs.asp.net/jgalloway/archive/2012/03/23/asp-net-web-api-screencast-series-part-5-custom-validation.aspx
In Kendo I can attach data attributes to my form fields in much the same way that I can with Unobtrussive Validation. However with The latter, I can also do this:
$.validator.unobtrusive.revalidate(form, validationResult);
Which makes it possible to display server validations by building up a list of Field names and their associated errors. Example of validationResult:
{"Author": "Author is too long! This was validated on the server."}
Is such a feature possible in Kendo? If not, I could see it as a useful addition for the future. We can validate 95% of what we need to do on the client, but something like this would be great for server validations such as checking for duplicates in the data store, etc.
http://weblogs.asp.net/jgalloway/archive/2012/03/23/asp-net-web-api-screencast-series-part-5-custom-validation.aspx
In Kendo I can attach data attributes to my form fields in much the same way that I can with Unobtrussive Validation. However with The latter, I can also do this:
$.validator.unobtrusive.revalidate(form, validationResult);
Which makes it possible to display server validations by building up a list of Field names and their associated errors. Example of validationResult:
{"Author": "Author is too long! This was validated on the server."}
Is such a feature possible in Kendo? If not, I could see it as a useful addition for the future. We can validate 95% of what we need to do on the client, but something like this would be great for server validations such as checking for duplicates in the data store, etc.