New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Adaptiveness
The Telerik UI for ASP.NET Core OTPInput does not require specific adaptive rendering but enables you to configure a suitable input-specific keyboard that appears on touchscreen devices upon interaction.
On-Screen Keyboard
To enhance the user experience of your application on mobile devices, you can configure the type of the on-screen keyboard for the OTPInput component.
To display an on-screen keyboard when the user focuses the OTPInput, set the InputMode()
property to any of the supported inputmode
HTML attribute values. Based on the defined value, the browser displays the respective virtual keyboard on the screen.
The following example demonstrates how to configure the most appropriate on-screen keyboard for the OTPInput.
Razor
@(Html.Kendo().OTPInput()
.Name("otp")
.Items(5)
.InputMode("text")
)