Validator Tag Helper Overview
The Validator tag helper helps you configure the Kendo UI Validator widget in ASP.NET Core applications.
Basic Usage
The following example demonstrates how to define the Validator by using the Validator tag helper.
Example
@{
var messages = new Dictionary<string, string>() { { "custom", "Please choose another Start Time." } };
var rules = new Dictionary<string, string>() { { "custom", "customFunction" } };
}
<form id="ticketsForm" kendo-validator="true" kendo-messages="messages" kendo-rules="rules">
<ul id="fieldlist">
<li>
<label for="fullname" class="required">Your Name</label>
@(Html.Kendo().TextBox()
.Name("fullname")
.HtmlAttributes(new { placeholder = "Full name", required = "required", style = "width:220px" })
)
</li>
</ul>
</form>