I am looking to create a generic editor for some basic models on my ASP.NET MVC3 site. Now they can contain strings, booleans, enumerations, and List collections. I want to expand the default editor templates to recognize List and show my own editor that can add and remove lines to this list. Everyone else is working fine.
How can I name the List.cshtml file, of course, is there a way to make this work? Also, why do enumerations not drop-down lists by default?
I know that I can create models with the name templates, but I do not know the class names until runtime.
Thanks for any help and recommendations.
source share