Hello.
I'm using kendoValidator to display all my validation errors with the kendo validation template. Using this:
<script> $(function () { $("form").kendoValidator();});</script>
But I have certain errors that I handle server side in the controller. Because they are kind of complex. And then I added the errors to the model this way:
ModelState.AddModelError("Hours", "The hours and the minutes can't be both 0.");
But if I add an error this way it is displayed with the standard ASP NET MVC way:
<span class="field-validation-error text-danger" data-valmsg-for="Hours" data-valmsg-replace="true">The hours and the minutes can't be both 0</span>
¿Is some kind of way to display those errors like the kendoValidator way?
In the image attached I show one error client side like kendo validation and two error's server side. I would like to all of then be like the client side error.
Thank you.