The EditorFor
extension doesn't have an argument htmlAttributes
like the TextBoxFor
, see: http://msdn.microsoft.com/en-us/library/system.web.mvc.html.editorextensions.editorfor%28v=vs.118%29.aspx
I suggest you change EditorFor
to CheckBoxFor
, or if you do want to use the EditorFor
, this question suggests to create an editor template.