New to KendoReact? Start a free 30-day trial
DataSourceRequestState
DataSourceRequestStatePremium
Updated on Jan 16, 2026
Represents the state required by the toDataSourceRequest
and toDataSourceRequestString methods.
The DataSourceRequestState is an extension of the State type
with an additional aggregates field—an array of AggregateDescriptor.
The aggregates field is required for serialization of aggregate descriptors in the request and does not replace the aggregate field
of the GroupDescriptor used by the group field.
ts
import { DataSourceRequestState } from '@progress/kendo-data-query';
const state: DataSourceRequestState = {
skip: 0,
take: 10,
sort: [{ field: 'ProductName', dir: 'asc' }],
group: [
{
field: 'Category',
aggregates: [{ field: 'UnitPrice', aggregate: 'sum' }] // GroupDescriptor aggregates
}
],
aggregates: [{ field: 'UnitPrice', aggregate: 'sum' }] // DataSourceRequestState aggregates
};