Tag Helpers Overview

The Kendo UI tag helper helps you configure the Kendo UI widgets by using the tag helper feature in ASP.NET Core.

Getting Started

Tag helpers can be added and further configured through predefined strongly typed attributes, and enable you to handle the events of the widgets.

Adding Tag Helpers

To configure an ASP.NET Core project that enables you to use the Kendo UI tag helper, add the @addTagHelper directive to your cshtml file.

  @addTagHelper "*, Kendo.Mvc"

You can also globally add the directive in Views/_ViewImports.cshtml.

Configuring Tag Helpers

You can configure tag helpers through the predefined strongly typed attributes which also provide IntelliSense. Complex and composite properties as well as nested configuration tags are not supported.

The following example demonstrates how to configure the NumericTextBox tag helper.

  <kendo-numerictextbox name="currency" format="c" min="0"
      enable="true" max="100" value="30">

Handling Widget Events

All widget events are supported by the tag helpers. The event can only be set as a string literal that points to a JavaScript function handler. The event is set as an attribute preceded by the on- prefix.

The following example demonstrates how to set the change event of a NumericTextBox.

    <kendo-numerictextbox name="currency" on-change="changeEvent">

See Also

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