Validator TagHelper Overview

The Telerik UI Validator TagHelper for ASP.NET Core is a server-side wrapper for the Kendo UI Validator widget.

The Validator offers options for implementing client-side form validation.

Telerik UI for ASP.NET Core Ninja image

The Validator is part of Telerik UI for ASP.NET Core, a professional grade UI library with 100+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Initializing the Validator

The following example demonstrates how to define the Validator by using the Validator TagHelper.

        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">
                <label for="fullname" class="required">Your Name</label>
                    .HtmlAttributes(new { placeholder = "Full name", required = "required", style = "width:220px" })

See Also

In this article
Not finding the help you need? Improve this article