validationSummary.template String|Function

Specifies the template for rendering the validation summary.

Parameters

errors Array

The validation errors.

Example

<form id="myform">
    <input name="username" required /> <br />
    <button>Validate</button>
</form>

<script type="x/kendo-template" id="summary-template">
    <ul>
        #for(var i = 0; i < errors.length; i += 1){#
            <li><a data-field="#=errors[i].field#" href="\\#">#= errors[i].message #</a></li>
        # } #
    </ul>
</script>

<script>
    $("#myform").kendoValidator({
      validationSummary: {
        template: kendo.template($("#summary-template").html())
      }
    });
</script>
In this article
Not finding the help you need? Improve this article