Grid not exporting searched records correctly

When trying to export (both PDF and excel) a server-side data grid that had been filtered before by the Search injected module, the export returns the top-k records, with k being the number of filtered records, but not being the ones that were actually filtered filtered.

Actual grid without any search:

Image_4365_1702647964345

Grid with search == 'Straw' (search handled on the back-end):

Image_6319_1702647983855

Export result of filtered grid:

Image_8992_1702648009898

The export above is returning the first 4 rows of the initial grid. The expected result for me would be either return all records, since I've added to my export properties the exportType to 'AllPages', or return the actual filtered records.

For reference, I have a similar grid that is client side, where the Search is handled on the frontend and it returns the correct filtered records. I have also trying setting the 'beforePdfExport' to clear the search, but even though it clears it, the result remains the same: It returns the first records from the initial grid.

Is there anything that I'm missing? 


1 Reply

PS Pavithra Subramaniyam Syncfusion Team December 18, 2023 10:21 AM UTC

Hi Isabella Aquino,


We have tried to reproduce the issue, but the server-side exporting is working fine with the searched result at our end. Please refer to the below screenshots for more information.


Grid with Search



PDF Exported file



To validate further, we request the below details which will be helpful for us to provide a better solution as early as possible.


  1. Share the full Grid code example.
  2. Share the Syncfusion version you are using.
  3. Please share an issue reproducible sample if possible.


Regards,

Pavithra S



Loader.
Up arrow icon