New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI OTPInput for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the OTPInputEventBuilder class.

C#
public OTPInputEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The OTPInput event handlers.

Methods

Fired when the value of the widget is changed by the user.The event handler function context (available through the keyword this) will be set to the widget instance.

C#
public OTPInputEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

OTPInputEventBuilder

Returns the current OTPInputEventBuilder instance.

Fired when the value of the widget is changed by the user.The event handler function context (available through the keyword this) will be set to the widget instance.

C#
public OTPInputEventBuilder Change(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the change event.

Returns:

OTPInputEventBuilder

Returns the current OTPInputEventBuilder instance.

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the OTPInput is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public OTPInputEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

OTPInputEventBuilder

Returns the current instance of OTPInputEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the OTPInput is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public OTPInputEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

OTPInputEventBuilder

Returns the current instance of OTPInputEventBuilder .