Custom Column Sorting - Ascending, Descending, and Clearing Sort on Third Tap

I'm implementing custom sorting for table columns in a Flutter project where the first tap on a column header sorts in ascending order, the second tap sorts in descending order, and the third tap clears the sort. While ascending and descending sorting works as expected, the sort isn't clearing properly on the third tap. Any suggestions on how to implement the feature?


Regards,

Abhiram Madhu Madhav


3 Replies

SD Sethupathy Devarajan Syncfusion Team October 21, 2024 11:16 AM UTC

Hi ABHIRAM,


It is clear that you are implementing custom sorting, where the first tap on the header sorts in ascending order, the second tap sorts in descending order, and the third tap is intended to clear the sort. While you mentioned that ascending and descending sorting works fine, you are unable to clear the sort on the third tap. You can achieve this by using the tri-state sorting property. We have shared the user guide link for your reference.

Ug Link : Tri-state sorting

Regards,

Sethupathy D.



AM ABHIRAM MADHU MADHAV replied to Sethupathy Devarajan October 22, 2024 05:13 AM UTC

Hi,

Thanks for the guidance! The solution worked perfectly, and everything is functioning as expected now. I appreciate your help!

Best regards,

Abhiram Madhu Madhav



AP Abinesh Palanisamy Syncfusion Team October 22, 2024 01:06 PM UTC

Hi ABHIRAM,

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.


Regards,

Abinesh P 


Loader.
Up arrow icon