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

Properties

OTPInput-specific properties to configure type, read-only state, separator, size, and more.

Getters

NameReturn TypeDescription
get_enabled()boolGet the enabled state of the OTPInput.
get_fillMode()Telerik.Web.UI.RadOTPInputFillModeGet the fill mode of the OTPInput.
get_inputMode()stringGet the input mode (e.g., "numeric", "text").
get_items()Object[]Get the number of OTP input boxes.
get_placeholder()stringGet the placeholder shown in input boxes.
get_readOnly()boolGet the read-only state of the OTPInput.
get_rounded()Telerik.Web.UI.RadOTPInputRoundedGet the border radius style.
get_separator()stringGet the visual separator between input groups.
get_size()Telerik.Web.UI.RadOTPInputSizeGet the size of the input boxes.
get_space()boolGet the spacing between input boxes.
get_type()Telerik.Web.UI.RadOTPInputTypeGet the type of the OTP input (Text, Number, etc.).
get_value()stringGet the current value of the OTPInput.

Setters

NameParameterDescription
set_enabled(value)boolSet the enabled state of the OTPInput.
set_fillMode(value)Telerik.Web.UI.RadOTPInputFillModeSet the fill mode of the OTPInput.
set_inputMode(value)stringSet the input mode (e.g., "numeric", "text").
set_items(value)number or Object[]Set the number of OTP input boxes.
set_placeholder(value)stringSet the placeholder shown in input boxes.
set_readOnly(value)boolSet the read-only state of the OTPInput.
set_rounded(value)Telerik.Web.UI.RadOTPInputRoundedSet the border radius style.
set_separator(value)stringSet the visual separator between input groups.
set_size(value)Telerik.Web.UI.RadOTPInputSizeSet the size of the input boxes.
set_space(value)numberSet the spacing between input boxes.
set_type(value)Telerik.Web.UI.RadOTPInputTypeSet the type of the OTP input (Text, Number, etc.).
set_value(value)stringSet the current value of the OTPInput.

Methods

NameDescription
destroy()Destroys the OTPInput widget instance.
focus()Focuses the OTPInput element.

Next Steps

In this article
GettersSettersMethodsNext Steps
Not finding the help you need?
Contact Support