There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
GetClientValidationRules() needs the container passed in
Please modify "ValidationExtensions.ApplyFieldValidationMetadata" so that "htmlHelper.ViewData.Model" gets passed into "v.GetClientValidationRules". The footprint for "GetClientValidationRules" will need to be modified
to include "object container". This will make "GetClientValidationRules" consistent with its sister method "Validate(object container)". The container is often necessary for determining how to validate. I downloaded the source
to verify that this is a small and workable change.
I've attached a project that demonstrates the problem and the ugly hack required to work around it. Look in Models\Request.cs. Essentially I had to make a provider, override CreateMetadata, and add the last container created into the AdditionalValues collection.
This is related to bug #5117. I should not have had to do anything with DataAnnotationsModelMetadata to make this work.