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

Is sorting flat data possible?

2 Answers 93 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 07 Aug 2014, 06:40 PM
Hello,

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 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 08 Aug 2014, 08:11 AM
Hello Oscar,

I'm afraid that sorting is not yet supported.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Rolf
Top achievements
Rank 1
answered on 08 Sep 2014, 01:14 PM
Hi Oscar

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

Best regards
Rolf
Tags
PivotGrid
Asked by
Oscar
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Rolf
Top achievements
Rank 1
Share this question
or