0

Is it possible to provide an Editor Template for IEnumerable (Or IList, List, MyModel[], for that matter)?

Mr Bell
  • 9,228
  • 18
  • 84
  • 134

1 Answers1

2

I know this is a old post but what you can do is make a template called MyModelList that takes IEnumerable<MyModel> and then you can have a Html.EditorFor(x => x.MyModelList, "MyModelList")

Manatherin
  • 4,169
  • 5
  • 36
  • 52