I need to do clickable checkboxes using HTML helpers. I've written this code without any problems:
var checkBox = "<label><input type='checkbox' name='vacationTypes' data-id = '"
    + data.checkboxList[i].Id + "' value = '"
    + data.checkboxList[i].Id
    + "' id='Edit-document-checkbox"
    + data.checkboxList[i].Id + "'/>"
    + data.checkboxList[i].Type + "</label>" + "<br/>";
All works fine. But now I need to do like this with html helpers. This is my code:
@for (int i = 0; i < Model.Count(); i++)
{
    <div class="col-md-4">
        @Html.HiddenFor(x => x[i].Id)
        @Html.CheckBoxFor(x => x[i].IsSelected) @Html.LabelFor(x=>x[i].IsSelected, Model[i].Type)
    </div>
}
How can I implement it?
 
    