you can use jquery to disable your checkbox using
$('#flag').attr('disabled', true);
or if you want to do this on the server side, you should return to checkbox for helper, for example
<%:Html.CheckBoxFor(x => x.flag, new { disabled = "disabled" }) %>
or you can write your own editor template, which can consume an additional parameter ViewData Html.EditorFor
source
share