title: Dynamically Add Rows when using Editor Templates and EditorFor in MVC 3
body: <p>Expanding on <a href="https://stackoverflow.com/questions/10984727/select-items-from-listt-in-mvc-4-using-model-binding">a previous question</a>, I'm using EditorFor to edit a list of objects of type (let's say) <code>Hobby</code>.</p>
  
  <p>Now, I need to implement functionality to add editors for individual <code>Hobby</code> objects, so that the user can add additional hobbies.</p>
  
  <p>I read <a href="http://blog.stevensanderson.com/2008/12/22/editing-a-variable-length-list-of-items-in-aspnet-mvc/" rel="nofollow noreferrer">Steven Anderson's blog</a> about how to do that in MVC 2.  However, he's rendering the individual Hobby instances using a loop and RenderPartial, rather than using EditorFor.  I understand his approach of making Ajax calls to render another partial view and inserting the view result into the DOM, but don't know how to apply the Ajax add in my case, with EditorFor.</p>
  
  <p>His code:</p>
  
  <pre><code>&lt;% foreach (var item in Model)
      Html.RenderPartial("GiftEditorRow", item);
  %&gt;
  </code></pre>
  
  <p>My code is using EditorFor like this:</p>
  
  <pre><code>// Model is a List&lt;Hobby&gt;
  @Html.EditorFor(model =&gt; model.AllowedSurveys)
  </code></pre>
  
  <p><strong>How do I add an additional Hobby editor, given that the editor is implemented as an Editor Template rather than as a Partial View?</strong></p>