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

CustomDataSourceSchemaBuilder

Methods

Model(System.Action)

Configures Model properties

Parameters

configurator - System.Action<CustomDataSourceModelDescriptorFactory>

The lambda which configures the Model instance

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Model(m => m.Id(o => o.OrderID))
            )

Model(System.Object)

Configures Model properties

Parameters

settings - System.Object

Aggregates(System.String)

Sets Aggregates option.

Parameters

aggregates - System.String

Aggregates option

Aggregates(System.Func)

Sets JavaScript function which to return aggregates.

Parameters

handler - System.Func<Object,Object>

Groups(System.String)

Sets Groups option.

Parameters

groups - System.String

Groups option

Groups(System.Func)

Sets JavaScript function which to return groups.

Parameters

handler - System.Func<Object,Object>

Data(System.String)

Sets Data option.

Parameters

data - System.String

Data option

Data(System.Func)

Sets JavaScript function which to return data.

Parameters

handler - System.Func<Object,Object>

Total(System.String)

Sets Total option.

Parameters

total - System.String

Total option

Total(System.Func)

Sets JavaScript function which to return total.

Parameters

handler - System.Func<Object,Object>

Errors(System.String)

Sets Errors option

Parameters

errors - System.String

Errors option

Errors(System.Func)

Sets JavaScript function which to return the errors.

Parameters

handler - System.Func<Object,Object>

Parse(System.Func)

Sets JavaScript function which to return data.

Parameters

handler - System.Func<Object,Object>

Type(System.String)

Sets Schema Type option

Parameters

type - System.String

Type option

In this article
Not finding the help you need?