MVC-3 / jQuery: Überprüfung meines Kontrollkästchens beenden

Ich habe MVC-3-Benutzersteuerung (HTML-Helfer & Aspx View Engine). Wenn ich das Formular absende, wird die unauffällige Überprüfung von jQuery gestartet und ich muss alle Kontrollkästchen aktivieren. Wie verhindere ich das?

Weitere Informationen

1) In meinem Modell ist kein erforderliches Attribut vorhanden.

2) Ich benutze dieses Kontrollkästchen intelerik gridview

    namespace Alpha.Views
    {
        public class AlphaCheckBoxControl : ViewUserControl<AlphaCheckBox> { 
    }

    public class AlphaCheckBox
    {
        public bool isChecked;
        public string name { get; set; }
        public MvcHtmlString labelText;
        public bool readOnly;
        public bool visible { get; set; }

        public IDictionary<string, object> htmlAttributes()
        {
            var dict = new Dictionary<string, object>();

            if (readOnly) dict.Add(@"readonly", "readonly");
            if (readOnly) dict.Add("disabled", "disabled");
            return dict;
        }
    }  
}


<%@ Control Language="C#" Inherits="Alpha.Views.AlphaCheckBoxControl" 
        AutoEventWireup="True" CodeBehind="AlphaCheckBox.ascx.cs" %>


<tr>
      <td>
          <%= Html.Label(Model.name)%>
      </td>
      <td>
           <%= Html.CheckBox(Model.name, Model.isChecked, Model.htmlAttributes())%>
      </td>
  </tr>

Antworten auf die Frage(0)

Ihre Antwort auf die Frage