Csv
configurationConfigures the CSV export settings of the grid.
csv
Objectcsv.allPages
BooleanIf set to true the grid will export all pages of data. By default the grid exports only the current page.
If the grid is bound to remote data and
allPagesis set totrueit will request all data items from the remote service. Be careful if you have a lot of data.
Default: false
csv.delimiter
StringThe delimiter character used to separate values in the CSV output.
Default: ","
csv.fileName
StringSpecifies the file name of the exported CSV file.
Default: "Export.csv"
csv.forceProxy
BooleanIf set to true, the content will be forwarded to proxyURL even if the browser supports saving files locally.
Default: false
csv.includeUTF8BOM
BooleanIf set to true, a UTF-8 BOM (Byte Order Mark) will be prepended to the CSV content. This can be useful for ensuring proper character encoding when opening the file in Excel.
Default: false
csv.lineSeparator
StringThe line separator used between rows in the CSV output.
Default: "\r\n"
csv.maxCellLength
NumberThe maximum number of characters allowed in a single cell. Longer values will be truncated.
Default: 32767
csv.maxColumns
NumberThe maximum number of columns to include in the CSV export.
Default: 1000
csv.maxRows
NumberThe maximum number of rows to include in the CSV export.
Default: 1000000
csv.preventFormulaInjection
BooleanIf set to true, cell values starting with =, +, -, @, \t, or \r will be prefixed with a single quote (') to prevent formula injection.
Default: true
csv.proxyURL
StringThe URL of the server side proxy which will stream the file to the end user.
A proxy will be used when the browser isn't capable of saving files locally. Such browsers are IE version 9 and lower and Safari.
The developer is responsible for implementing the server-side proxy.
The proxy will receive a POST request with the following parameters in the request body:
- contentType: The MIME type of the file
- base64: The base-64 encoded file content
- fileName: The file name, as requested by the caller.
The proxy should return the decoded file with the "Content-Disposition" header set to
attachment; filename="<fileName.csv>".