Help here, the checked value of Kendo Checkbox does not change and is always assigned as 'true'. Below is the sample code:
@(Html.Kendo().CheckBox().Name("autoValidate")
.Checked(false)
.Label("Auto-Validate")
.HtmlAttributes(new { onchange = "updateMsg();" })
)
<
blockquote
>
autoValidate checked value: <
span
id
=
"autoValidate-value"
></
span
>
</
blockquote
>
<
script
type
=
"text/javascript"
>
function updateMsg() {
$('#autoValidate-value').text($('input[name=autoValidate]').val());
}
updateMsg();
</
script
>