I have the following excel button >
The problem i would like to solve is > grid.columns.visibleColumns > it give me also the columns with exportable: false.
How can i get all the visible column that are allowed to be exported ?
{
type: "button",
text: 'Export Excel',
icon: 'b-fa b-fa-file-excel',
onClick() {
const grid = gridRef.current.instance;
const columns = [...grid.columns.visibleColumns, "intermediateStops"]
gridRef.current.instance.features.excelExporter.export({
exporterConfig: {
rows: getSelectedRecordOrAllGrid(grid),
columns: columns
}
})
},
},