Colvis plugin and buttons/exports
Colvis plugin and buttons/exports
yet
Posts: 43Questions: 17Answers: 1
We are using the colvis plugin and the exporter plugins for exporting to excel and PDF.
The exporter plugins do not respect the visibility/invisibility of columns into account and always export all columns.
Is it possible to configure the exporters to export only the visibile columns?
This discussion has been closed.
Answers
If you are using the latest Editor version the first option makes sure only the visible columns are exported the second option makes sure that all rows (not only the selected ones get exported). If you only want the selected rows to be exported just delete the second option.
exportOptions: {
columns: ':visible',
modifier: { selected: null },
See also this example for live running code of what @rf1234 mentions.
Allan