I\'m using asp.net mvc 3 with jquery unobtrusive validation. I recently changed from standard DataAnnotations to FluentValidation and it works great.
My primary reas
In your partial, before each instance of ElementsVM, you must set a unique prefix using ViewData.TemplateInfo.HtmlFieldPrefix, like so:
var i = 0;
foreach (var element in Model)
{
ViewData.TemplateInfo.HtmlFieldPrefix = "Elements[" + i.ToString() + "]";
@Html.TextBoxFor(m => m.Value)
i++;
}
This should give you your unobtrusive validation attributes, and should also work with the default model binder.
counsellorben