Last post May 04, 2010 04:06 PM by Blake05
May 03, 2010 06:46 PM|tdupont|LINK
One of the most exciting new features in MVC 2 is "Enhanced Model Validation support across both server and client"; this new enhanced support allows for client side validation to be dynamically generated into a view from DataAnnotations attributes on models.
One minor complaint: Out of the box, it only supports the Microsoft AJAX libraries. Good news: It can use other frameworks, and we have done just that!
The MvcFormValidator is an alternative form validation context (modeled after Sys.Mvc.FormContext) that loads the generated validation configuration, and requires no changes in the MVC generated code, but uses ExtJS as it's back end. This means that the
only thing you have to do is reference Ext.ux.MvcFormValidator.js, and it will enable you to use the ExtJS Core for form validation instead of having to import MicrosoftMvcValidation and the other Microsoft AJAX libraries.
May 04, 2010 04:06 PM|Blake05|LINK
Sweet, I've been waiting for this.