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

Provides a fluent interface for configuring WebApi data source schema settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WebApiDataSourceSchemaBuilder

Inheritance: objectWebApiDataSourceSchemaBuilder

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

Constructors

C#
public WebApiDataSourceSchemaBuilder(DataSourceSchema schema)
Parameters:schemaDataSourceSchema

Fields

The DataSourceSchema.

C#
protected readonly DataSourceSchema schema

Methods

The field from the server response which contains the data items. Can be set to a function which is called to return the data items for the response.

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

WebApiDataSourceSchemaBuilder

The field from the server response which contains the data items. Can be set to a function which is called to return the data items for the response.

C#
public virtual WebApiDataSourceSchemaBuilder Data(string data)
Parameters:datastring

Data option

Returns:

WebApiDataSourceSchemaBuilder

The field from the server response which contains server-side errors. Can be set to a function which is called to return the errors for response.

C#
public virtual WebApiDataSourceSchemaBuilder Errors(Func<object, object> handler)
Parameters:handlerFunc<object, object>Returns:

WebApiDataSourceSchemaBuilder

The field from the server response which contains server-side errors. Can be set to a function which is called to return the errors for response.

C#
public virtual WebApiDataSourceSchemaBuilder Errors(string errors)
Parameters:errorsstring

Errors option

Returns:

WebApiDataSourceSchemaBuilder

The field from the server response which contains the total number of data items. Can be set to a function which is called to return the total number of data items for the response.

C#
public virtual WebApiDataSourceSchemaBuilder Total(Func<object, object> handler)
Parameters:handlerFunc<object, object>Returns:

WebApiDataSourceSchemaBuilder

The field from the server response which contains the total number of data items. Can be set to a function which is called to return the total number of data items for the response.

C#
public virtual WebApiDataSourceSchemaBuilder Total(string total)
Parameters:totalstring

Total option

Returns:

WebApiDataSourceSchemaBuilder