RadioButton Appearance
As of the R1 2022 release, the RadioButton uses a brand new rendering.
In this article, you will learn more about the new appearance of the Telerik UI for ASP.NET Core RadioButton.
For additional information regarding the decision behind these changes, visit the Components Rendering article.
For a live example, check out the Appearance Demo of the RadioButton.
Options
The Size()
method controls how big or small the rendered radio input looks.
The example below demonstrates how to adjust the Size
of the component:
@(Html.Kendo().RadioButton()
.Name("radioBtn")
.Checked(true)
.Size(ComponentSize.Small)
)
<kendo-radiobutton name="radioBtn" checked="true" size="small"></kendo-radiobutton>
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-radio-md
to the input element.
<!-- default rendering -->
<input type="radio" class="k-radio k-radio-md" id="radioButtonName"/>