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

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

Definition

Constructors

Initializes a new instance of the OTPInput class.

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

The client events.

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

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

Defines the handler of the KendoKeydown client-side event.

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

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

Returns:

OTPInputEventBuilder