Class
DataSourceResult

Represents the data response for complex controls like grids. Includes data, total, aggregates and errors.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

cs-api-definition
public class DataSourceResult

Inheritance: objectDataSourceResult

Constructors

DataSourceResult()

Declaration

cs-api-definition
public DataSourceResult()

Properties

AggregateResults

Information for aggregates.

Declaration

cs-api-definition
public IEnumerable<AggregateResult> AggregateResults { get; set; }

Property Value

IEnumerable<AggregateResult>

Data

The actual data that will be displayed in the control. Often it is only the current page of data.

Declaration

cs-api-definition
public IEnumerable Data { get; set; }

Property Value

IEnumerable

Errors

Information for errors that occured during the data source operation.

Declaration

cs-api-definition
public object Errors { get; set; }

Property Value

object

Total

The total number of records in the original data source. Used for calculating a pager, for example.

Declaration

cs-api-definition
public int Total { get; set; }

Property Value

int