Telerik UI for ASP.NET Core MaskedTextBox Overview

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
index.cshtml
IndexController.cs
Index_TagHelper.cshtml

Also available for:

CLIENT-SIDE API HTML HELPER API
devcraft ninja image

The MaskedTextBox component 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.

Description

The Telerik MaskedTextBox for ASP.NET Core component enables you to define and render a controlled text input that is based on a specific format. The helper enables you to define its value and mask value, and set custom mask rules, prompt characters, and culture names.

This example demonstrates the basic configuration for the MaskedTextBox.

The MaskedTextBox control is part of Telerik UI for ASP.NET Core, a professional-grade UI library with 110+ components for building modern and feature-rich web applications. The Telerik UI for ASP.NET Core MaskedTextBox is a server-side wrapper for the Kendo UI for jQuery MaskedTextBox component and supports an HtmlHelper and a TagHelper mode.

Functionality and Features

  • Appearance–With the supported API, you can easily style the appearance of the MaskedTextBox.
  • Events–The MaskedTextBox supports an extensive set of events to which you can subscribe.
  • Floating label–The MaskedTextBox allows you to use a floating label, which displays the type of input a field requires.
  • API–The MaskedTextBox exposes rich client-side API and events, which provide easy configuration or extension points for custom functionality on top of the built-in features.
  • Globalization–The globalization process of the MaskedTextBox combines the translation of the component messages (localization) with adapting them to specific cultures (internationalization and right-to-left support).
  • RTL support–The right-to-left (RTL) support of the MaskedTextBox reflects the ability to render its content in a right-to-left direction for right-to-left languages, such as Arabic, Hebrew, Chinese, or Japanese.
  • Validation–The MaskedTextBox provides a set of predefined mask rules and enables you to modify them.

Additional Apps

This MaskedTextBox example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources