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

Custom sorting

1 Answer 112 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 16 Apr 2013, 08:09 AM
Hi,

i want to order my columns in a custom way ("B", "A", "C" for example) Is this possible?

Best Regards,
Thomas

1 Answer, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 16 Apr 2013, 11:02 AM
Hello Thomas,

RadPivotGrid will always apply sorting on your data. But there is a way to achieve the desired order - you can create your own object and implement IComparable. When RadPivotGrid tries to sort your data, it will use your code, so you can add a sort key or something more meaningful for your case, and sort the data as you wish. I'm sending you a simple project demonstrating how to achieve this. Please take a look at it and inform us if you have any problems or concerns.

Kind regards,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PivotGrid
Asked by
Thomas
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or