manipulating the data

2 posts, 0 answers
  1. Morten
    Morten avatar
    302 posts
    Member since:
    Jul 2012

    Posted 25 Feb 2015 Link to this post

    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?,console,output
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2598 posts

    Posted 25 Feb 2015 Link to this post

    Hello Morten,

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

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top