New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for the HandlePromptRequest event.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridAIPromptRequestEventArgs : EventArgs

Inheritance: objectEventArgsGridAIPromptRequestEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the GridAIPromptRequestEventArgs class.

C#
public GridAIPromptRequestEventArgs(string prompt, Action<string> responseSet = null)
Parameters:promptstring

The prompt text from the user.

responseSetAction<string>

Optional callback invoked when ResponseJson is set.

Properties

Gets or sets a value indicating whether an error occurred during processing.

C#
public bool HasError { get; set; }

Gets the prompt text from the user.

C#
public string Prompt { get; }

Gets or sets the JSON request sent to the AI model.

C#
public string RequestJson { get; set; }

Gets or sets the response text. Setting this property triggers response processing.

C#
public string ResponseJson { get; set; }