Switch TagHelper Overview

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

The Switch displays two exclusive choices. With the new Switch variables introduced in the Kendo UI for jQuery R1 2019 release, the default styling of the Switch component for each of the Sass-based Kendo UI for jQuery themes can be modified to match the desired custom layout.

Initializing the Switch

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

<kendo-switch name="switch"
        checked="true"></kendo-switch>

Basic Configuration

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

    <kendo-switch name="switch"
            checked="true"
            enabled="true"></kendo-switch>
    @(Html.Kendo().Switch()
        .Name("switch")
        .Checked(true)
        .Enabled(true))

See Also

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