ExcelExportProperties DataSource with selected records not working with WebApiAdaptor
Hello,
Attachment: TestBlazor_sel_records_sample_5885cc16.rar
I want to export PDF or Excel file from selected records only.
Here is part of my code:
List<Customer> selectedRecords = await DefaultGrid.GetSelectedRecords();
ExcelExportProperties ExportProperties = new ExcelExportProperties();
ExportProperties.DataSource = selectedRecords;
await DefaultGrid.ExcelExport(ExportProperties);
It works when the grid data is given as a List<T>. However when I use WebApiAdaptor, then ExportProperties.DataSource is ignored and always all records from the grid are exported.
<SfDataManager Url="/api/ApiCustomer" Adaptor="Adaptors.WebApiAdaptor"></SfDataManager>
It worked properly in Syncfusion.Blazor version 18.1. Not anymore in 18.4 and also doesn't work in 19.
Maybe there is something new which I should define to make it working?
I attach my sample project. The menu "Selected Excel" WebApiAdaptor and causes described problem. The menu "User Data Excel" uses fixed data in a List basing on sample https://blazor.syncfusion.com/documentation/datagrid/pdf-export/#custom-data-source.
Best regards
Attachment: TestBlazor_sel_records_sample_5885cc16.rar
SIGN IN To post a reply.
2 Replies
RN
Rahul Narayanasamy
Syncfusion Team
April 12, 2021 01:16 PM UTC
Hi Andrzej,
Greetings from Syncfusion.
Query: ExcelExportProperties DataSource with selected records not working with WebApiAdaptor
We have checked your query and we have confirmed it as a bug and logged the defect report “Custom datasource is ignored when exporting while using WebApiAdaptor” for the same. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming bi-weekly release which is expected to be rolled by the end of May, 2021.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
Until then we appreciate your patience.
Regards,
Rahul
RN
Rahul Narayanasamy
Syncfusion Team
August 2, 2021 10:36 AM UTC
Hi Andrzej,
We are glad to announce that our weekly patch release (v19.2.0.48) has been rolled out successfully and in this release, we have included the fix for issue “Custom datasource is ignored when exporting while using WebApiAdaptor”. So kindly update your NuGet (Syncfusion.Blazor) to our latest version to resolve the reported issue
Please find the Nuget package and release notes from below
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.
Regards,
Rahul
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
-
AN Andrzej
- Apr 9, 2021 07:59 PM UTC
- Aug 2, 2021 10:36 AM UTC