Appearance
In this article, you will find information about the styling options and rendering of the Telerik UI for ASP.NET Core MaskedTextBox.
For a live example, visit the Appearance Demo of the MaskedTextBox.
Options
The MaskedTextBox supports the following styling options:
Size—configures the overall size of the component.Rounded—configures the border radius of the component.FillMode—configures how the color is applied to the component.
Size
The Size option controls the size of the MaskedTextBox. The k-input-{size} class, which is applied to the wrapping span element of the MaskedTextBox, reflects the value of the Size option.
The following values are available for the Size option:
Small—small size (applies thek-input-smclass to the wrapping span element)Medium—medium size (applies thek-input-mdclass to the wrapping span element)Large—large size (applies thek-input-lgclass to the wrapping span element)
The following example demonstrates how to set Size in the declaration of the MaskedTextBox:
@(Html.Kendo().MaskedTextBox()
.Name("maskedtextbox")
.Mask("(999) 000-0000")
.Size(ComponentSize.Large)
)When not explicitly set, the applied theme controls the default size.
The
Nonevalue is deprecated. Use custom CSS instead.
Rounded
The Rounded option controls the border radius of the MaskedTextBox. The class that corresponds to the Rounded option is k-rounded-{rounded}.
The following values are available for the Rounded option:
Small—small border radius (applies thek-rounded-smclass to the wrapping span element)Medium—medium border radius (applies thek-rounded-mdclass to the wrapping span element)Large—large border radius (applies thek-rounded-lgclass to the wrapping span element)Full—largest border radius (applies thek-rounded-fullclass to the wrapping span element)
The following example demonstrates how to set Rounded in the declaration of the MaskedTextBox:
@(Html.Kendo().MaskedTextBox()
.Name("maskedtextbox")
.Mask("(999) 000-0000")
.Rounded(Rounded.Large)
)When not explicitly set, the applied theme controls the default border radius.
The
Nonevalue is deprecated. Use custom CSS instead.
FillMode
The FillMode option controls the way color is applied to the rendered MaskedTextBox. The k-input-{fillMode} class, which is applied to the wrapping span element of the MaskedTextBox, reflects the value of the FillMode option.
The following values are available for the FillMode option:
Solid