title: How to have one RadioButtons group display in EditorTemplates in ASP.Net MVC(3)
body: <p>I have a list of items from which I want the user to be able to input some value  select one
  But the radio-buttons generated by the EditorTemplate are named like "Item[x].SelectedItemId" so they are totally independent from each other and I can't get the value...</p>
  
  <p>Let's go show some code.
  The model:</p>
  
  <pre><code>public class FormModel
  {
      public List&lt;ItemModel&gt; Items { get; set; }
      public int SelectedItemId { get; set; }
  }
  
  public class ItemModel
  {
      public int ItemId { get; set; }
      public string ItemName { get; set; }
      public string SomeString { get; set; }
  }
  </code></pre>
  
  <p>The view:</p>
  
  <pre><code>@model FormModel
  @using (Html.BeginForm())
  { 
      @Html.EditorFor(m =&gt; m.Items)
  }
  </code></pre>
  
  <p>The editor template:</p>
  
  <pre><code>@model ItemModel
  @Html.RadioButton("SelectedItemId", Model.ItemId)
  @Model.ItemName &lt;br/&gt;
  @Html.TextBoxFor(m =&gt; m.SomeString) &lt;br/&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This is what I want:</p>
  
  <p><img src="https://i.stack.imgur.com/cg9UP.jpg" alt="What I want"></p>
  
  <p>This is what I get:</p>
  
  <p><img src="https://i.stack.imgur.com/k13LQ.jpg" alt="what I get"></p>
  
  <p>As a result, FormModel.SelectedItemId never gets the value of any radio-button.</p>
  
  <p>What am I doing wrong?</p>