CSVComponent
The component is required when exporting the data to a CSV file. The component provides different options to customize the exported file and its content.
<kendo-grid>
<kendo-grid-csv fileName="Export.csv"></kendo-grid-csv>
</kendo-grid>
Selector
kendo-grid-csv
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
delimiter |
|
|
Sets the character used to separate values in a row. Must be a single character. |
fetchData |
|
Provides a function to get the exported data. By default, uses the data displayed in the Grid in accordance with the currently applied | |
fileName |
|
|
Sets the file name for the exported CSV file. |
forceProxy |
|
Forwards the content to | |
groupHeaderFormatter |
|
Provides a custom formatter for group headers in grouped data exports. Receives the display names of grouped fields and returns the formatted header. | |
groupValueFormatter |
|
Provides a custom formatter for group value rows in grouped data exports. Receives the values and field names, and returns the formatted group value. | |
includeUTF8BOM |
|
|
When |
keys |
|
Sets property names to extract from object or Map rows, in order. By default, these are the properties used as | |
lineSeparator |
|
|
Sets the string used to terminate each line. |
maxCellLength |
|
|
Sets the maximum number of characters allowed per cell. Values exceeding this limit are truncated. |
maxColumns |
|
|
Maximum number of columns to export. Keys/columns exceeding this limit are automatically truncated. Default: 1000 (prevents memory exhaustion and DoS attacks). |
maxRows |
|
|
Maximum number of rows to export. Data exceeding this limit is automatically truncated. Default: 1000000 (prevents memory exhaustion and DoS attacks). |
names |
|
Sets optional column headers to render on the first line. By default, column names are extracted from each column's | |
preventFormulaInjection |
|
|
When |
proxyURL |
|
Sets the URL of the server-side proxy that streams the file to the user. Use a proxy if the browser cannot save files locally.
Set |