Button TagHelper Overview

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

The Button provides a styled clickable UI functionality with arbitrary content. Apart from consistent Kendo UI for jQuery styling, the Button provides keyboard operability for elements, which natively do not have it—for example, span.

Initializing the Button

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

    <kendo-button name="button1">Click here!</kendo-button>

Basic Configuration

The Button TagHelper configuration options are passed as attributes of the tag.


        @(Html.Kendo().Button()
            .Name("imageButton")
            .HtmlAttributes(new { type = "button" })
            .ImageUrl(Url.Content("/shared/icons/sports/snowboarding.png"))
            .Content("Image icon"))

        <kendo-button name="button1" type="button"
            image-url="/shared/icons/sports/snowboarding.png">Image icon</kendo-button>

See Also

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