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 convential 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>

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>

See Also

In this article