Toolbar Export Menu
An export button opens a menu of formats: CSV, TSV, JSON, Excel-compatible XLSX, and copy to clipboard. Options cover scope (all rows, filtered rows, or selected rows) and which columns are included. Every format is free with no premium gate, so users can get data out of the grid without any custom code.
Planned. This page shows the specification from issue #202. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A sales grid with a filter applied and some rows selected.
Expected behavior
The export menu lists the enabled formats. Choosing one downloads a file containing exactly the rows and columns in scope. onBeforeExport can cancel the export or change cell values.
Planned API surface
toolbar item 'export'gridOptions.exportOptions{formats,fileName,scope,columns,includeHeaders}api.exportData(format,options)onBeforeExportonAfterExportAcceptance criteria
- The CSV export escapes quotes, delimiters, and newlines according to RFC 4180. (pending)
- The 'selected' scope is disabled when no rows are selected. (pending)
- XLSX files open without warnings in common spreadsheet applications. (pending)
- Formatted values are exported unless useRawValues:true is set. (pending)
- onBeforeExport returning false cancels the export. (pending)