I'm not sure if this is the correct place but here goes..
runs the DataAnnotationsValidationRunner to check my my data annotations. I also do other business rule validation and throw a RuleException if needed. When the ModelState is invalid I loop through it getting the errors and returning it as a ContentResult.
On the Success event from the AJAX post it updates a DIV which uses the jQuery UI Themes(Error/Highlight) styles kind of like a nice looking ValidationSummary. I think this looks very good.
I have tried putting xVal into my project but have been unable to get it to work, it always does a full post. The source shows the ClientSideValidation outputting the rules etc so I don't know why it doesn't validate client side. Firstly will
xVal handle business rule validation client side or does it just handle the DataAnnotations? Is there a way to get Xval to put its results into the fancy looking ValidationSummary?
At the moment I have MVC ValidationMessages next to my textboxes but because I am handling the post via AJAX when it returns errors these are not being highlighted, you only get the ValidationSummary type result. If xVal cannot do what I have asked
does anyone know of a way to highlight these ValidationMessages?