Provides a fluent interface for configuring AI service settings for the Grid component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the data item.
Syntax:
public class GridAiServiceSettingsBuilder<T> where T : class
Inheritance: objectGridAiServiceSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridAiServiceSettingsBuilder<T> class.
public GridAiServiceSettingsBuilder(GridAiServiceSettings<T> container, ViewContext viewContext)
Properties
protected GridAiServiceSettings<T> Container { get; }
ViewContext
ViewContext
protected ViewContext ViewContext { get; }
Methods
The parameters sent to the service request.
The handler that provides additional parameters sent to the service request.
The headers of the service request.
The function to get the output from the AI service response.
public GridAiServiceSettingsBuilder<T> OutputGetter(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:GridAiServiceSettingsBuilder<T>
Returns the current GridAiServiceSettingsBuilder<T> instance.
The function to get the output from the AI service response.
public GridAiServiceSettingsBuilder<T> OutputGetter(string handler)
The name of the JavaScript function that will be evaluated.
Returns:GridAiServiceSettingsBuilder<T>
Returns the current GridAiServiceSettingsBuilder<T> instance.
Sets the URL for the Grid AI service using action and controller names with route values.
public GridAiServiceSettingsBuilder<T> Url(string actionName, string controllerName, object routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesobjectThe route values.
Returns:GridAiServiceSettingsBuilder<T>
The builder instance.
Sets the URL for the Grid AI service using action and controller names with route value dictionary.
public GridAiServiceSettingsBuilder<T> Url(string actionName, string controllerName, RouteValueDictionary routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesRouteValueDictionaryThe route values dictionary.
Returns:GridAiServiceSettingsBuilder<T>
The builder instance.
Sets the URL for the Grid AI service using action and controller names.
public GridAiServiceSettingsBuilder<T> Url(string actionName, string controllerName)
The action name.
controllerNamestringThe controller name.
Returns:GridAiServiceSettingsBuilder<T>
The builder instance.
The URL of the AI service to use for generating outputs.
public GridAiServiceSettingsBuilder<T> Url(string value)
The value for Url
Returns:GridAiServiceSettingsBuilder<T>
Returns the current GridAiServiceSettingsBuilder<T> instance.