Edit this page

MaskedTextBox Tag Helper Overview

The MaskedTextBox tag helper helps you configure the Kendo UI MaskedTextBox widget in ASP.NET Core applications.

Basic Usage

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

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

Configuration

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

Example

        @(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