New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Items
Updated over 6 months ago
In this article, you will find information about different ways to configure the Telerik UI for ASP.NET Core OTPInput items.
The option accepts either an:
- Numerical value
- Action delegate
The below example demonstrates how to configure the items by passing a number.
Razor
@(Html.Kendo().OTPInput() .Name("otp") .Items(5) )The next example shows how to configure the items by passing an Action delegate.
Razor
@(Html.Kendo().OTPInput() .Name("otp") .Items(items => { items.Add().GroupLength(3); items.Add().GroupLength(2); items.Add().GroupLength(3); }) )