This is a migrated thread and some comments may be shown as answers.

manipulating the data

1 Answer 225 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 25 Feb 2015, 10:20 AM
I have a data source that returns data from a remove source (data = [{"i":27,"p":10,"o":"Yes"},{"i":29,"p":0,"o":"No"},{"i":30,"p":10,"o":"Yes"},{"i":31,"p":10,"o":"Yes"},{"i":32,"p":10,"o":"Yes"},{"i":33,"p":10,"o":"Yes"},{"i":35,"p":10,"o":"Yes"},{"i":37,"p":0,"o":"No"},{"i":38,"p":0,"o":"No"}...).

On the client side I'd like to filter, group and sum/count the data in various ways fx:

filter: i = 32
group by: o
sum p

is this possible using only datasouce methods?
or should I look into using another js framework like underscore.js?

http://jsbin.com/tosito/2/edit?js,console,output

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 25 Feb 2015, 11:46 AM

Hello Morten,

It is possible to filter, group or aggregate the data. Please check the dataSource documentation for more information:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Data Source
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Kiril Nikolov
Telerik team
Share this question
or