Sorting when using async data loading

Hi,

I'm doing an async data loading to fill my datagrid, I have a datapager and at every page change I do an api request to get only the rows I want to show in that page and I update the datasource with them. This is working fine.

My problem is when I try to use the sorting by column. Currently it's sorting only the rows in the datasource which are the ones loaded for the page I'm seeing but my intention is to do a new request to the api in that case with a proper sort. 

I think there is no handler for that so there is another possibility to solve my problem?


thanks


4 Replies

TP Tamilarasan Paranthaman Syncfusion Team July 18, 2022 02:04 PM UTC

Hi Ezequiel Bertran,


Currently, DataGrid does not have support for the calling the async feature while sorting. We have already considered "making performSorting method as async in DataGrid" as a feature request. This feature will be implemented in our 2022 Volume 3 release, which is expected to be rolled out at the end of September 2022. We will let you know when this feature is implemented. We appreciate your patience until then. You can follow up with the below feedback for further details,


Feedback link: https://www.syncfusion.com/feedback/33405/make-the-performsorting-method-in-datagridsource-class-as-async


Regards,

Tamilarasan



TP Tamilarasan Paranthaman Syncfusion Team September 30, 2022 11:56 AM UTC

Hi Ezequiel Bertran,


Sorry for the inconvenience caused.


Unfortunately, we couldn't provide the async support for the performSorting method in the 2022 Volume 3 release. We will implement this feature in our 2022 Volume 4 release, which is expected to be rolled out by the mid of December 2022. We will let you know once it is published. We appreciate your patience and understanding till then.


Regards,

Tamilarasan



TP Tamilarasan Paranthaman Syncfusion Team December 22, 2022 09:08 AM UTC

Ezequiel, Unfortunately, we couldn't provide the async support for the performSorting method in the 2022 Volume 4 release. We will implement this feature in our 2023 Volume 1 release, which is expected to be rolled out by the end of March 2023. We will let you know once it is published. We appreciate your patience and understanding until then.



TP Tamilarasan Paranthaman Syncfusion Team March 24, 2023 06:11 AM UTC

Ezequiel Bertran,


We are glad to announce that our Essential Studio 2023 Volume 1 Main Release V21.1.35 is rolled out. The support for performing sorting asynchronously has been included in version 21.1.35.


Pub Link: https://pub.dev/packages/syncfusion_flutter_datagrid/changelog


UG Documentation: https://help.syncfusion.com/flutter/datagrid/sorting#perform-sorting-asynchronously


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Loader.
Up arrow icon