views:

141

answers:

1

With the UIHint you can also store some data on the model so you can react with that in the View. The Sintax as described in some blogs is:

[UIHint("TemplateToUse",null,"Variable1", "Value1", "Variable2", "Value2", ...)]
public string Something { get; set; }

And then I try to access this on the View with ViewData.ModelMetaData.AditioanlValues but the array returns empty!

Anyone have implemented this already to give me a "Hint" on how to use UIHint for this?