Represents an AI prompt input control with a dropdown showing suggested and recent prompts. Combines DataGridAIPromptInput with DataGridAISuggestionsView in a RadPopup dropdown.
Definition
Namespace:Telerik.Maui.Controls.DataGrid
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class DataGridAIPromptDropDown : RadLayout
Inheritance: objectRadLayoutDataGridAIPromptDropDown
Inherited Members
Constructors
Initializes a new instance of the DataGridAIPromptDropDown class.
public DataGridAIPromptDropDown()
Fields
CancelPromptRequestCommandProperty
BindableProperty
Identifies the CancelPromptRequestCommand property.
public static readonly BindableProperty CancelPromptRequestCommandProperty
EmptyContentTemplateProperty
BindableProperty
Identifies the EmptyContentTemplate property.
public static readonly BindableProperty EmptyContentTemplateProperty
InputTextProperty
BindableProperty
Identifies the InputText property.
public static readonly BindableProperty InputTextProperty
IsEmptyContentVisibleProperty
BindableProperty
Identifies the IsEmptyContentVisible property.
public static readonly BindableProperty IsEmptyContentVisibleProperty
IsRecentPromptsVisibleProperty
BindableProperty
Identifies the IsRecentPromptsVisible property.
public static readonly BindableProperty IsRecentPromptsVisibleProperty
IsSuggestedPromptsVisibleProperty
BindableProperty
Identifies the IsSuggestedPromptsVisible property.
public static readonly BindableProperty IsSuggestedPromptsVisibleProperty
OpenOnFocusProperty
BindableProperty
Identifies the OpenOnFocus property.
public static readonly BindableProperty OpenOnFocusProperty
PromptInputStyleProperty
BindableProperty
Identifies the PromptInputStyle property.
public static readonly BindableProperty PromptInputStyleProperty
PromptRequestCommandProperty
BindableProperty
Identifies the PromptRequestCommand property.
public static readonly BindableProperty PromptRequestCommandProperty
RecentPromptsProperty
BindableProperty
Identifies the RecentPrompts property.
public static readonly BindableProperty RecentPromptsProperty
SubmitPromptOnSelectionProperty
BindableProperty
Identifies the SubmitPromptOnSelection property.
public static readonly BindableProperty SubmitPromptOnSelectionProperty
SuggestedPromptsProperty
BindableProperty
Identifies the SuggestedPrompts property.
public static readonly BindableProperty SuggestedPromptsProperty
SuggestionsViewStyleProperty
BindableProperty
Identifies the SuggestionsViewStyle property.
public static readonly BindableProperty SuggestionsViewStyleProperty
Properties
Gets or sets the command executed when a cancel prompt request is submitted.
public ICommand CancelPromptRequestCommand { get; set; }
EmptyContentTemplate
DataTemplate
Gets or sets the template used to display content when no suggestions are available.
public DataTemplate EmptyContentTemplate { get; set; }
Gets or sets a value indicating whether the empty content template should be visible when no suggestions are available.
public bool IsEmptyContentVisible { get; set; }
Gets or sets a value indicating whether the recent prompts section is visible.
public bool IsRecentPromptsVisible { get; set; }
Gets or sets a value indicating whether the suggested prompts section is visible.
public bool IsSuggestedPromptsVisible { get; set; }
Gets or sets a value indicating whether the popup should open automatically when the input view receives focus.
public bool OpenOnFocus { get; set; }
PromptInputStyle
Style
Gets or sets the style of the DataGridAIPromptInput used for text input.
public Style PromptInputStyle { get; set; }
Gets or sets the command executed when a prompt request is submitted.
public ICommand PromptRequestCommand { get; set; }
Gets or sets the collection of recent prompts.
public IEnumerable<string> RecentPrompts { get; set; }
Gets or sets a value indicating whether selecting a prompt should automatically submit the request. When true, selecting a prompt closes the popup and invokes the PromptRequestCommand. When false, the selected prompt is placed in the input and the user must manually submit.
public bool SubmitPromptOnSelection { get; set; }
Gets or sets the collection of suggested prompts.
public IEnumerable<string> SuggestedPrompts { get; set; }
SuggestionsViewStyle
Style
Gets or sets the style of the DataGridAISuggestionsView.
public Style SuggestionsViewStyle { get; set; }
Events
Occurs when the user requests to cancel the current processing operation by clicking the stop button.
public event EventHandler CancelPromptRequest
Occurs when a prompt is requested from the user on send or completed action.
public event EventHandler<DataGridPromptRequestEventArgs> PromptRequest