PromptBoxEventBuilder

Methods

Blur(System.String)

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

For more information see Blur event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

Blur(System.Func)

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

For more information see Blur event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

Focus(System.String)

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

For more information see Focus event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

Focus(System.Func)

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

For more information see Focus event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

Input(System.String)

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

For more information see Input event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

Input(System.Func)

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

For more information see Input event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

InputBlur(System.String)

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

For more information see InputBlur event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

InputBlur(System.Func)

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

For more information see InputBlur event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

InputFocus(System.String)

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

For more information see InputFocus event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

InputFocus(System.Func)

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

For more information see InputFocus event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

ValueChange(System.String)

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

For more information see ValueChange event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

ValueChange(System.Func)

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

For more information see ValueChange event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

MultilineStateChange(System.String)

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

For more information see MultilineStateChange event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

MultilineStateChange(System.Func)

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

For more information see MultilineStateChange event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

FileRemove(System.String)

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

For more information see FileRemove event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

FileRemove(System.Func)

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

For more information see FileRemove event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

FileSelect(System.String)

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

For more information see FileSelect event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

FileSelect(System.Func)

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

For more information see FileSelect event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

PromptAction(System.String)

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.

For more information see PromptAction event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

PromptAction(System.Func)

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.

For more information see PromptAction event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextClick(System.String)

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

For more information see SpeechToTextClick event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextClick(System.Func)

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

For more information see SpeechToTextClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextEnd(System.String)

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

For more information see SpeechToTextEnd event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextEnd(System.Func)

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

For more information see SpeechToTextEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextError(System.String)

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

For more information see SpeechToTextError event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextError(System.Func)

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

For more information see SpeechToTextError event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextResult(System.String)

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

For more information see SpeechToTextResult event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextResult(System.Func)

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

For more information see SpeechToTextResult event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextStart(System.String)

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

For more information see SpeechToTextStart event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

SpeechToTextStart(System.Func)

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

For more information see SpeechToTextStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .

KendoKeydown(System.String)

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.

For more information see KendoKeydown event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of PromptBoxEventBuilder .

KendoKeydown(System.Func)

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.

For more information see KendoKeydown event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of PromptBoxEventBuilder .