I have a form Razor in .NET Core that I have attached a Kendo Validator to. When I submit the form validator.validate() is returning false but none of the inputs on the form are displaying a validation error. How can I tell what validations are failing when validator.validate() returns false?
Razor Form
<
form
id
=
"editQuestionsForm"
method
=
"post"
>
<
input
asp-for
=
"Input.InspectionQuestionId"
type
=
"hidden"
/>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"form-group"
>
<
label
asp-for
=
"Input.InspectionSectionId"
></
label
><
br
/>
<
kendo-combobox
name
=
"inspectionSection"
style
=
"width: 500px;"
for
=
"Input.InspectionSectionId"
placeholder
=
"Select Section"
datatextfield
=
"Text"
datavaluefield
=
"Value"
bind-to
=
"Model.InspectionSections"
>
<
popup-animation
>
<
open
duration
=
"500"
/>
<
close
duration
=
"500"
/>
</
popup-animation
>
</
kendo-combobox
><
br
/>
<
span
asp-validation-for
=
"Input.InspectionSectionId"
class
=
"text-danger"
></
span
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"form-group"
>
<
label
asp-for
=
"Input.QuestionTextForForm"
></
label
><
br
/>
<
textarea
asp-for
=
"Input.QuestionTextForForm"
class
=
"form-control-textarea"
></
textarea
><
br
/>
<
span
asp-validation-for
=
"Input.QuestionTextForForm"
class
=
"text-danger"
></
span
>
</
div
>
</
div
>
</
div
>
</
form
>
JavaScript
var
validator = $(
"#editQuestionsForm"
).kendoValidator().data(
"kendoValidator"
);
function
validateSave() {
if
(validator.validate()) {
$(
'#editQuestionsForm'
).submit();
}
else
{
bootstrapWarningsMessage(
"There was an error submitting the form."
);
}
return
true
;
}