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

Provides a fluent interface for configuring Grid AI settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

The type of the data model.

Syntax:

C#
public class GridAiSettingsBuilder<T> where T : class

Inheritance: objectGridAiSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the GridAiSettingsBuilder<T> class.

C#
public GridAiSettingsBuilder(GridAiSettings<T> container, ViewContext viewContext)
Parameters:containerGridAiSettings<T>viewContextViewContext

Properties

C#
protected GridAiSettings<T> Container { get; }

ViewContext

ViewContext

C#
protected ViewContext ViewContext { get; set; }

Methods

The URL or the configuration of the AI service to use for generating outputs.

C#
public GridAiSettingsBuilder<T> AIAssistant(Action<AIPromptBuilder> configurator)
Parameters:configuratorAction<AIPromptBuilder>

The AIPromptBuilder for the AI Assistant setting.

Returns:

GridAiSettingsBuilder<T>

Returns the current instance of GridAiSettingsBuilder<T> .

Defines the configuration options for the AI AssistantWindow in the Grid. If set to false, the AI AssistantWindow is disabled.

C#
public GridAiSettingsBuilder<T> AIAssistantWindow(Action<WindowBuilder> configurator)
Parameters:configuratorAction<WindowBuilder>

The WindowBuilder for the AI AssistantWindow setting.

Returns:

GridAiSettingsBuilder<T>

Returns the current instance of GridAiSettingsBuilder<T> .

Configures if the AI Assistant Window should remain visible after the response.

C#
public GridAiSettingsBuilder<T> AutoClose(bool value)
Parameters:valuebool

The value for AutoClose

Returns:

GridAiSettingsBuilder<T>

Returns the current GridAiSettingsBuilder<T> instance.

Configures if the AI Assistant output should be cleared after closing.

C#
public GridAiSettingsBuilder<T> KeepOutputHistory()
Returns:

GridAiSettingsBuilder<T>

Returns the current GridAiSettingsBuilder<T> instance.

Configures if the AI Assistant output should be cleared after closing.

C#
public GridAiSettingsBuilder<T> KeepOutputHistory(bool value)
Parameters:valuebool

The value for KeepOutputHistory

Returns:

GridAiSettingsBuilder<T>

Returns the current GridAiSettingsBuilder<T> instance.

The URL or the configuration of the AI service to use for generating outputs.

C#
public GridAiSettingsBuilder<T> Service(Action<GridAiServiceSettingsBuilder<T>> configurator)
Parameters:configuratorAction<GridAiServiceSettingsBuilder<T>>

The GridAiServiceSettingsBuilder<T> for the service setting.

Returns:

GridAiSettingsBuilder<T>

Returns the current instance of GridAiSettingsBuilder<T> .

The URL or the configuration of the AI service to use for generating outputs.

C#
public GridAiSettingsBuilder<T> Service(string url)
Parameters:urlstring

The url for the service.

Returns:

GridAiSettingsBuilder<T>

Returns the current instance of GridAiSettingsBuilder<T> .