MaskedTextBox TagHelper Overview

The Telerik UI MaskedTextBox TagHelper for ASP.NET Core is a server-side wrapper for the Kendo UI MaskedTextBox widget.

The MaskedTextBox enables a controlled text input that is based on a specific format.

Telerik UI for ASP.NET Core Ninja image

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

Initializing the MaskedTextBox

The following example demonstrates how to define the MaskedTextBox by using the MaskedTextBox TagHelper.

    <kendo-maskedtextbox name="ssn" mask="000-00-0000" value="003-12-3456"></kendo-maskedtextbox>

Basic Configuration

The MaskedTextBox TagHelper configuration options are passed as attributes of the tag.

            .Mask("(999) 000-0000")
            .Value("555 123 4567")

        <kendo-maskedtextbox name="phone_number" mask="(999) 000-0000" value="555 123 4567"></kendo-maskedtextbox>

See Also

In this article
Not finding the help you need? Improve this article