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

Items

Updated on Dec 11, 2025

In this article, you will find information about different ways to configure the Telerik UI for ASP.NET MVC 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);
        })
    )

See Also

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