Is sorting flat data possible?

3 posts, 1 answers
  1. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 07 Aug 2014 Link to this post


    I'm using the PivotGrid control with local databinding (the local data might be different, it's some kind of dynamic data so not always there will be the same fields with the same names).

    For example, I receive these records where the Year field is:
    - 2012
    - 2009
    - 2010
    - 2013
    - 2011

    But I would like that when I add this Year field to my pivot grid I could read the data like this:
    - 2009
    - 2010
    - 2011
    - 2012
    - 2013

    I have tried using the dataSource sort method, etc. but I cannot achieve this.
  2. Answer
    Nikolay Rusev
    Nikolay Rusev avatar
    2285 posts

    Posted 08 Aug 2014 Link to this post

    Hello Oscar,

    I'm afraid that sorting is not yet supported.

    Nikolay Rusev
    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
  4. Rolf
    Rolf  avatar
    8 posts
    Member since:
    Aug 2014

    Posted 08 Sep 2014 Link to this post

    Hi Oscar

    You can transform your data as an array and the sort it before you add it to the PivotGrid.

    Best regards
Back to Top