Telerik UI for ASP.NET MVC MaskedTextBox Overview

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
index.cshtml
IndexController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API
devcraft ninja image

The MaskedTextBox component is part of Telerik UI for ASP.NET MVC, 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 MVC 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 MVC, a professional-grade UI library with 110+ components for building modern and feature-rich web applications. The Telerik UI for ASP.NET MVC MaskedTextBox is a server-side wrapper for the Kendo UI for jQuery MaskedTextBox component and comes in the form of an HtmlHelper.

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 a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources