title: Replace Html.EditorFor for Bootstrap Toggle
body: <p>Currently I am using <code>Html.EditorFor</code> in conjunction with a <code>bool?</code> field and wonder if it is possible to replace this with Bootstrap Toggle.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>ViewBag.News = Convert.ToBoolean(model.News) ? "Yes" : "No";
  
  @Html.HiddenFor(model =&gt; model.News)
  &lt;input name="news" type="checkbox" value="@ViewBag.News" data-toggle="toggle" data-off="No" data-on="Yes" data-onstyle="success" /&gt;
  </code></pre>
  
  <p>It appears that the <code>value</code> field is being ignored, and looking at examples on <code>http://www.bootstraptoggle.com/</code> the use of value is nowhere to be seen, which is strange as its a checkbox initially.</p>
  
  <p>Any ideas on how to bind the model data to a Bootstrap Data-Toggle componenet would be much appreciated :-)</p>