New to Telerik UI for ASP.NET Core? 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 Core NumericTextBox.

For a live example, visit the Appearance Demo of the NumericTextBox.

Options

The NumericTextBox HtmlHelper supports the following styling options:

  • Size()—configures the overall size of the component.
  • FillMode()—configures how the color is applied to the component.
  • Rounded()—configures the border radius of the component.

Size

The Size() method allows you to adjust the size of the NumericTextBox. The default size is Medium.

@(Html.Kendo().NumericTextBox()
    .Name("numeric")
    .Size(ComponentSize.Medium)
)
<kendo-numerictextbox name="numeric"
                      size="ComponentSize.Medium">
</kendo-numerictextbox>

The option is applied to the wrapping span element through the k-input-md class.

<span class="k-numerictextbox k-input k-input-md">
</span>

The following values are available for the Size option:

  • Small
  • Medium
  • Large
  • None

Rounded

You can control how much border radius is applied to the component by using the Rounded() method. The default value is Medium.

@(Html.Kendo().NumericTextBox()
    .Name("numeric")
    .Rounded(Rounded.Medium)
)
<kendo-numerictextbox name="numeric"
                      rounded="Rounded.Medium">
</kendo-numerictextbox>

The option is applied to the wrapping span element through the k-rounded-md class.

<span class="k-numerictextbox k-input k-rounded-md">

The Rounded option supports the following values:

  • Small
  • Medium
  • Large
  • Full
  • None

FillMode

The FillMode option controls the way the color is applied to the NumericTextBox. The default value is Solid.

@(Html.Kendo().NumericTextBox()
    .Name("numeric")
    .FillMode(FillMode.Solid)
)
<kendo-numerictextbox name="numeric"
                      fill-mode="FillMode.Solid">
</kendo-numerictextbox>

The option is applied to the wrapping span element through the k-input-solid class.

<span class="k-numerictextbox k-input k-input-solid">

The following values are available for the FillMode option:

  • Solid
  • Flat
  • Outline
  • None

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