Class
DataGridPromptRequestEventArgs

Provides data for the PromptRequest event.

Definition

Namespace:Telerik.Maui.Controls.DataGrid

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class DataGridPromptRequestEventArgs : EventArgs

Inheritance: objectEventArgsDataGridPromptRequestEventArgs

Inherited Members EventArgs.Empty

Constructors

DataGridPromptRequestEventArgs(string, Action<string>, Action<bool>)

Initializes a new instance of the DataGridPromptRequestEventArgs class.

Declaration

cs-api-definition
public DataGridPromptRequestEventArgs(string prompt, Action<string> onResponseSet = null, Action<bool> onHasErrorSet = null)

Parameters

prompt

string

The prompt text from the user.

onResponseSet

Action<string>

Optional callback invoked when the Response property is set.

onHasErrorSet

Action<bool>

Optional callback invoked when the HasError property is set.

Properties

HasError

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

Declaration

cs-api-definition
public bool HasError { get; set; }

Property Value

bool

Prompt

Gets the prompt text from the user.

Declaration

cs-api-definition
public string Prompt { get; }

Property Value

string

RequestJson

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

Declaration

cs-api-definition
public string RequestJson { get; set; }

Property Value

string

ResponseJson

Gets or sets the response text.

Declaration

cs-api-definition
public string ResponseJson { get; set; }

Property Value

string