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
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
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
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.
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.