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.

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.


        @(Html.Kendo().MaskedTextBox()
            .Name("phone_number")
            .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