Mikeon
Mikeon

Reputation: 10749

Html.EditorFor SelectList

With the introduction of Html.EditorFor everything just seems easier -- All but one thing: EditorFor<SelectList>

What would be the best way to make it work? What I need is either a checkboxlist, a dropdownlist or the like.

I can easily find mvc1 solution for the problem, but mvc2 seems to not be there.

Any thoughts?

Upvotes: 5

Views: 8262

Answers (1)

Brian O&#39;Connell
Brian O&#39;Connell

Reputation: 59

You could use the templating available - See ScottGu's post on it http://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-preview-1-released.aspx

Upvotes: 1

Related Questions