I\'m using MVC 5.2.0 and I\'m trying to use the new Html.EnumDropDownListFor. This is how I\'m setting the values:
//Model
public class MyModel
Could NOT get the option selected in the controller to display on the front end either, so had to resort to setting a temporary hidden input and used jQuery to update on the client side:
@Html.LabelFor(model => model.MyEnum, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EnumDropDownListFor(model => model.MyEnum, "Select name", new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.MyEnum, "", new { @class = "text-danger" })
@Html.Hidden("MyEnumTemp", (int)Model.MyEnum)