Custom sorting

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    28 posts
    Member since:
    Jun 2010

    Posted 16 Apr 2013 Link to this post


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

    Best Regards,
  2. Rosen Vladimirov
    Rosen Vladimirov avatar
    648 posts

    Posted 16 Apr 2013 Link to this post

    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.

Back to Top