I am using MVC to display a table of checkbox options. I know that I can call EditorFor() on a collection of objects and it will produce a list of them by looping through the collection and outputting HTML based on each item’s editor template. My question is, is there a way of accessing the iterator of this loop within the editor template, so that I can start a new row of the table every, say, 3 columns?
I am using MVC to display a table of checkbox options. I know that
Share
Additionally, naming the items the correct thing for your model binding is important. See this article:
http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx