This project is read-only.

Building Enum Drop Downs

Aug 16, 2012 at 10:30 AM

So there is this nice blog post on MSDN: http://blogs.msdn.com/b/stuartleeks/archive/2010/05/21/asp-net-mvc-creating-a-dropdownlist-helper-for-enums.aspx

I've used this to make an Html.EnumsDropDownFor and it works well. I would suggest to make Build.Mvc even better that it could include this sort of thing. Converting an enum on your own without helpers like this is a PITA.

- Matt

Jan 21, 2014 at 4:37 AM
EnumHelper.SelectList is now part of the official Microsoft ASP MVC 5.1 release