I\'m trying to use the Html.DropDownList extension method but can\'t figure out how to use it with an enumeration.
Html.DropDownList
Let\'s say I have an enumeration like
You can also use my custom HtmlHelpers in Griffin.MvcContrib. The following code:
@Html2.CheckBoxesFor(model => model.InputType) @Html2.RadioButtonsFor(model => model.InputType) @Html2.DropdownFor(model => model.InputType)
Generates:
https://github.com/jgauffin/griffin.mvccontrib