If a grid is filtered using grid.getListDataView().addFilter(...), the exported grid will show the correct ammount of items, but will not show the filtered items (the items that passed the filter), rather it will show the first n items (even if they don't match the filter) of the grid.
Example having the following rows:
row A
row B
row C
Applying a filter criteria that leaves out row B:
row A
row C
What ends up being exported (which is wrong) is:
row A
row B
To further show the behaviour of this issue, I attached a sample project in which I attempt something as shown above.
grid-exporter-test.zip
To test it, please:
If a grid is filtered using
grid.getListDataView().addFilter(...)
, the exported grid will show the correct ammount of items, but will not show the filtered items (the items that passed the filter), rather it will show the first n items (even if they don't match the filter) of the grid.Example having the following rows: row A row B row C Applying a filter criteria that leaves out row B: row A row C What ends up being exported (which is wrong) is: row A row B
To further show the behaviour of this issue, I attached a sample project in which I attempt something as shown above. grid-exporter-test.zip To test it, please: