title: Default radio buttons to unchecked if model property is null
body: <p>When a user loads up the page for the first time and hasn't made a selection, I need the radio buttons to be unchecked. Once they select an option I need it to save their selection. Since it has to be based on data in the model, it seems like jQuery is out. </p>
  
  <p><strong>Model</strong></p>
  
  <pre><code>public enum AccountType
  {
      Checking,
      Savings
  }
  
   public AccountType DDAccountType { get; set; }
  </code></pre>
  
  <p><strong>Data access</strong></p>
  
  <pre><code>if (oReader["DDAccountType"] != DBNull.Value)
    model.DDAccountType = (oReader["DDAccountType"].ToString() == "Checking") ? AccountType.Checking : AccountType.Savings;
  </code></pre>
  
  <p><strong>Razor</strong></p>
  
  <pre><code>Checking @Html.RadioButtonFor(m =&gt; m.myModel.DDAccountType, "Checking")
  Savings @Html.RadioButtonFor(m =&gt; m.myModel.DDAccountType, "Savings")
  </code></pre>
  
  <p>My guess was since the model value never gets set if it is null, that the radio buttons would be unchecked but it always selects the first one in the tab order.</p>