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

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

Definition

Constructors

Initializes a new instance of the PromptBox class.

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

The client events.

Methods

Defines the handler of the Blur client-side event. Fires each time the PromptBox loses focus.

C#
public PromptBoxEventBuilder Blur(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the FileRemove client-side event. Fires each time the user removes a file attachment.

C#
public PromptBoxEventBuilder FileRemove(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the FileSelect client-side event. Fires each time the user selects files using the File Select button.

C#
public PromptBoxEventBuilder FileSelect(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the Focus client-side event. Fires each time the PromptBox receives focus.

C#
public PromptBoxEventBuilder Focus(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the Input client-side event. Fires each time the user types in the input field.

C#
public PromptBoxEventBuilder Input(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the InputBlur client-side event. Fires each time the internal input element loses focus.

C#
public PromptBoxEventBuilder InputBlur(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the InputFocus client-side event. Fires each time the internal input element receives focus.

C#
public PromptBoxEventBuilder InputFocus(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

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

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

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

Returns:

PromptBoxEventBuilder

Defines the handler of the MultilineStateChange client-side event. Fires when the PromptBox transitions between single-line and multi-line states in auto mode.

C#
public PromptBoxEventBuilder MultilineStateChange(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the PromptAction client-side event. Fires when the action button is clicked (send or stop). Check e.actionType to determine the action.

C#
public PromptBoxEventBuilder PromptAction(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the SpeechToTextClick client-side event. Fires each time the user clicks the Speech to Text button.

C#
public PromptBoxEventBuilder SpeechToTextClick(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the SpeechToTextEnd client-side event. Fires when the speech recognition service disconnects.

C#
public PromptBoxEventBuilder SpeechToTextEnd(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the SpeechToTextError client-side event. Fires when a speech recognition error occurs.

C#
public PromptBoxEventBuilder SpeechToTextError(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the SpeechToTextResult client-side event. Fires when the speech recognition service returns a result.

C#
public PromptBoxEventBuilder SpeechToTextResult(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the SpeechToTextStart client-side event. Fires when the speech recognition service begins listening.

C#
public PromptBoxEventBuilder SpeechToTextStart(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder

Defines the handler of the ValueChange client-side event. Fires when the value changes through user input (not programmatic changes).

C#
public PromptBoxEventBuilder ValueChange(string handler)
Parameters:handlerstring

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

Returns:

PromptBoxEventBuilder