New to Telerik UI for ASP.NET MVCStart a free 30-day trial

Types

Updated over 6 months ago

In this article, you will find information about the different ways to configure the type for the Telerik UI for ASP.NET MVC OTPInput items.

The available types are:

  • Number—Allows typing only numerical characters.
  • Text—Allows typing characters of a different nature.
  • Password—Behaves like an input element of type password.

The below example demonstrates how to configure the Type() configuration of the component.

Razor
    @(Html.Kendo().OTPInput()
        .Name("otp")
        .Items(5)
        .Type(OTPType.Number)
    )

See Also

In this article
See Also
Not finding the help you need?
Contact Support