New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Appearance

In this article, you will find information about the styling options and rendering of the Telerik UI for ASP.NET MVC CheckBox.

For a live example, refer to the Appearance Demo of the CheckBox.

Options

  • Size()—configures the overall size of the component.
  • Rounded()—configures the border radius of the component.

Size

The Size() method allows you to change the size of the CheckBox.

@(Html.Kendo().CheckBox()
    .Name("checkBoxBtn")
    .Checked(true)
    .Size(ComponentSize.Medium)
)

The following values are available for the Size option:

  • Small
  • Medium
  • Large
  • None

The default size value is Medium and it is added as a class k-checkbox-md to the input element.

<!-- default rendering -->
<input type="checkbox" class="k-checkbox k-checkbox-md" id="checkBoxName"/>

Rounded

The border radius of the CheckBox can be customized through the Rounded() method.

@(Html.Kendo().CheckBox()
    .Name("checkBoxBtn")
    .Checked(true)
    .Rounded(Rounded.Medium)
)

The following values are available for the Rounded option:

  • Small
  • Medium
  • Large
  • None

The default value is Medium and it is added as a class k-roundend-md to the input element.

<!-- default rendering -->
<input type="checkbox" class="k-checkbox k-roundend-md" id="checkBoxName"/>

Rendering

Starting with version R1 2022, the component has a new rendering. For additional information on the decision behind these changes, visit the Components Rendering Overview article.

To review the latest rendering of the component, refer to the HTML specifications in the Kendo UI Themes Monorepo. The tests folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.

See Also

In this article