How to identify Flexgrid column sort direction (React)

Posted by: igelfenbeyn on 19 January 2021, 6:05 am EST

  • Posted 19 January 2021, 6:05 am EST

    Hello,

    thanks for providing a sample below. How can I identify if the user click on ascending or descending order? I want to reflect the sort direction in a label outside of the grid.

    https://stackblitz.com/edit/react-n5t1j6

    Thank you

  • Posted 19 January 2021, 6:10 pm EST

    Hi Igor,

    You may use the sortedColumn event of the FlexGrid. This event fires whenever a column is sorted or unsorted. Please refer to the sample link below for a demonstration:

    https://stackblitz.com/edit/react-q1yahr

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels