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

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:

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

Inheritance: objectGridAiServiceSettingsBuilder<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 GridAiServiceSettingsBuilder<T> class.

C#
public GridAiServiceSettingsBuilder(GridAiServiceSettings<T> container, ViewContext viewContext)
Parameters:containerGridAiServiceSettings<T>viewContextViewContext

Properties

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

ViewContext

ViewContext

C#
protected ViewContext ViewContext { get; }

Methods

The handler that provides additional parameters sent to the service request.

C#
public GridAiServiceSettingsBuilder<T> Data(Func<object, object> handler)
Parameters:handlerFunc<object, object>Returns:

GridAiServiceSettingsBuilder<T>

The parameters sent to the service request.

C#
public GridAiServiceSettingsBuilder<T> Data(object data)
Parameters:dataobjectReturns:

GridAiServiceSettingsBuilder<T>

The handler that provides additional parameters sent to the service request.

C#
public GridAiServiceSettingsBuilder<T> Data(string handler)
Parameters:handlerstringReturns:

GridAiServiceSettingsBuilder<T>

The headers of the service request.

C#
public GridAiServiceSettingsBuilder<T> Headers(object headers)
Parameters:headersobjectReturns:

GridAiServiceSettingsBuilder<T>

The function to get the output from the AI service response.

C#
public GridAiServiceSettingsBuilder<T> OutputGetter(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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.

C#
public GridAiServiceSettingsBuilder<T> OutputGetter(string handler)
Parameters:handlerstring

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.

C#
public GridAiServiceSettingsBuilder<T> Url(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

The action name.

controllerNamestring

The controller name.

routeValuesobject

The 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.

C#
public GridAiServiceSettingsBuilder<T> Url(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

The action name.

controllerNamestring

The controller name.

routeValuesRouteValueDictionary

The route values dictionary.

Returns:

GridAiServiceSettingsBuilder<T>

The builder instance.

Sets the URL for the Grid AI service using action and controller names.

C#
public GridAiServiceSettingsBuilder<T> Url(string actionName, string controllerName)
Parameters:actionNamestring

The action name.

controllerNamestring

The controller name.

Returns:

GridAiServiceSettingsBuilder<T>

The builder instance.

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

C#
public GridAiServiceSettingsBuilder<T> Url(string value)
Parameters:valuestring

The value for Url

Returns:

GridAiServiceSettingsBuilder<T>

Returns the current GridAiServiceSettingsBuilder<T> instance.