I am afraid that the dataSource currently does not support such functionality out of the box. It is possible to achieve it via custom code in the template function - for example:
"Results: #= doMath() #"
ds = $(
aggregates = ds.aggregates();
margin = aggregates.Revenue.sum - aggregates.Cost.sum;
"your result string"
This approach will work with pre-set dataSource aggregates though (like in this example
), e.g. when groupable is not enabled.
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI