New to Telerik UI for ASP.NET MVC? Start a free 30-day trial
Types
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 a 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)
)