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

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

Definition

Constructors

Initializes a new instance of the InlineAIPrompt class.

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

The client events.

Methods

Defines the handler of the CommandExecute client-side event. Triggered once a command is selected.

C#
public InlineAIPromptEventBuilder CommandExecute(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder

Defines the handler of the Hide client-side event. Triggered once the component has been closed programmatically.

C#
public InlineAIPromptEventBuilder Hide(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder

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

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

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

Returns:

InlineAIPromptEventBuilder

Defines the handler of the OutputAction client-side event. This event will be fired with the button options that will be received, after the command has finished. Currently, these would be the Copy, Retry, and Discard options.

C#
public InlineAIPromptEventBuilder OutputAction(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder

Defines the handler of the PromptRequest client-side event. Triggered before a request has been initiated to the specified service.

C#
public InlineAIPromptEventBuilder PromptRequest(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder

Defines the handler of the PromptRequestCancel client-side event. Triggered when a prompt request is cancelled, typically by clicking the stop generation button during streaming operations.

C#
public InlineAIPromptEventBuilder PromptRequestCancel(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder

Defines the handler of the PromptResponse client-side event. Triggered once a response has been sent back from the specified service.

C#
public InlineAIPromptEventBuilder PromptResponse(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder

Defines the handler of the Show client-side event. Triggered once the component has been opened programmatically.

C#
public InlineAIPromptEventBuilder Show(string handler)
Parameters:handlerstring

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

Returns:

InlineAIPromptEventBuilder