I am using Asp.Net MVC 2, and trying to iterate through the metadata to add input controls to grid columns. Most attributes like DisplayAttribute, StringLength attribute, etc are not populated by the default modelmetadata provider.
1- I think these attributes are going to be supported in MVC3, right?
2- Is there a custom provider that I can use till MVC3 is out, I remember seeing a custom metadata provider (thought it was in MVCContrib) but could not find it there, anyone knows where to find the metadataprovider supporting this attributes?
I wrote a provider to handle more attributes than the standard provider does. Here’s the idea:
Naturally, the default templates with MVC don’t actually do anything with that info. You have to customize them yourself.