I am having a problem with the kendo checkbox. It is not setting the value i check on it and sending to the controller. It is showing in the javascript model (in a custom save event) that the field is null. It also hits the model in the controller as null.
How i declare the field:
[NotMapped]
public bool? ValueBool { get; set; }
the control is in a partial view and is called like this:
@Html.Kendo().CheckBoxFor(m=> m.ValueBool).Checked(Convert.ToBoolean(Model?.Value ?? "false"))
This shows the control with the correct value.
However it's not passing the value when i click "save". Any ideas?
Aucun commentaire:
Enregistrer un commentaire