Custom Sorting in Wijmo Olap Grid

Posted by: neelam.kasle on 30 April 2020, 10:18 am EST

  • Posted 30 April 2020, 10:18 am EST

    Hi,

    I am currently integrating Wijmo Olap grid in our application. We need to implement custom sorting on clicking header level sort icon. I am able to bind sort icons at header by using itemFormatter. But the sort event is not getting triggered after when we click on the icon.

  • Posted 1 May 2020, 1:32 am EST

    Hi Neelam,

    If you wish to implement custom sorting in PivotGrid, I would suggest you use the sortComparer property of the PivotField:

    https://www.grapecity.com/wijmo/api/classes/wijmo_olap.pivotfield.html#sortcomparer

    This will be easier to implement. You just need to provide your logic for sorting the grid will handle the ascending/descending sort as well as the sort icons.

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels