New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Events

The Telerik UI InlineAIPrompt for ASP.NET Core exposes multiple events like PromptRequest, PromptRequestCancel, and more, that allow you to control the behavior of the UI component.

For a complete example on basic InlineAIPrompt events, refer to the demo on using the events of the InlineAIPrompt.

Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

Razor
    @(Html.Kendo().InlineAIPrompt()
        .Name("inlineaiprompt")
        .Events(ev => ev.PromptRequest("onPromptRequest"))
        ... //Additional configuration
    )

Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

Razor
    @(Html.Kendo().InlineAIPrompt()
        .Name("inlineaiprompt")
        .Events(e => e.PromptRequest(@<text>
            function() {
                // Handle the InlineAIPrompt PromptRequest event inline.
            }
            </text>)
        )
        ... //Additional configuration
    )

Next Steps

See Also