Hello,
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