ASP.NET Core CheckBox Overview

Telerik UI for ASP.NET Core Ninja image

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

The Telerik UI CheckBox TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI CheckBox widget.

The Telerik UI CheckBox for ASP.NET Core is based on the conventional HTML checkbox element. It allows you to add more customizable checkboxes to your application.

Initializing the CheckBox

The following example demonstrates how to define the CheckBox.

    @(Html.Kendo().CheckBox()
        .Name("eq1")    
        .Checked(true)
        .Label("My Telerik Checkbox")
    )
    <kendo-checkbox name="eq1"
                checked="true"
                label="My Telerik Checkbox">
    </kendo-checkbox>

Functionality and Features

  • Appearance—The CheckBox enables you to customize its appearance based on your requirements.
  • Events—The CheckBox allows you to handle its events and implement custom functionality.

To learn more about the appearance, anatomy, and accessibility of the CheckBox, visit the Progress Design System documentation—an information portal offering rich component usage guidelines, descriptions of the available style variables, and globalization support details.

Two-way Binding

To use the Telerik UI Checkbox as an editor for a field in your C# Model, declare by using the CheckboxFor helper:

    @(Html.Kendo().CheckBoxFor(m=>m.BooleanFieldName)
        .Label("Editable Checkbox"))
    )
    <kendo-checkbox name="BooleanFieldName"
                label="Editable Checkbox">
    </kendo-checkbox>

Next Steps

See Also

In this article