For those who are still looking for an answer, in ASP.NET 5 the functionality of EnumDropDownListFor () is obtained using DropDownListFor () in combination with the GetEnumSelectList () method. For instance:
@model Enum @Html.DropDownListFor(m => m, Html.GetEnumSelectList(Model.GetType()))
Note that you can decorate each enumeration value with custom display names, for example. include spaces. For instance:
public enum CementTypes { [Display(Name = "Class S")]Class_S, [Display(Name = "Class N")]Class_N, [Display(Name = "Class R")]Class_R }
source share