manipulating the data

2 posts, 0 answers
  1. Morten
    Morten avatar
    267 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?

    http://jsbin.com/tosito/2/edit?js,console,output
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 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:

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top