New to Kendo UI for AngularStart a free 30-day trial

CSVComponent

Updated on Feb 5, 2026

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.

html
<kendo-grid>
  <kendo-grid-csv fileName="Export.csv"></kendo-grid-csv>
</kendo-grid>

Selector

kendo-grid-csv

Inputs

NameTypeDefaultDescription

delimiter

string

","

Sets the character used to separate values in a row. Must be a single character.

fetchData

CSVFetchDataCallback

Provides a function to get the exported data. By default, uses the data displayed in the Grid in accordance with the currently applied State. Supply a custom function to export a different data set. Typically used to export all data, not just the current page.

fileName

string

"Export.csv"

Sets the file name for the exported CSV file.

forceProxy

boolean

Forwards the content to proxyURL even if the browser supports local file saving when set to true.

groupHeaderFormatter

(displayNames: string[]) => string

Provides a custom formatter for group headers in grouped data exports. Receives the display names of grouped fields and returns the formatted header.

groupValueFormatter

(values: any[], groupNames: string[]) => string

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

boolean

false

When true, adds a UTF-8 Byte Order Mark (BOM) at the beginning of the file. Helps applications like Microsoft Excel correctly recognize UTF-8 encoding.

keys

string[]

Sets property names to extract from object or Map rows, in order. By default, these are the properties used as field binding values in the Grid's column definitions.

lineSeparator

string

"\r\n"

Sets the string used to terminate each line.

maxCellLength

number

32767

Sets the maximum number of characters allowed per cell. Values exceeding this limit are truncated.

maxColumns

number

1000

Maximum number of columns to export. Keys/columns exceeding this limit are automatically truncated. Default: 1000 (prevents memory exhaustion and DoS attacks).

maxRows

number

1000000

Maximum number of rows to export. Data exceeding this limit is automatically truncated. Default: 1000000 (prevents memory exhaustion and DoS attacks).

names

string[]

Sets optional column headers to render on the first line. By default, column names are extracted from each column's title or field properties.

preventFormulaInjection

boolean

true

When true, prefixes potentially dangerous formula characters (=, +, -, @, tab, \r) with a single quote (') to prevent formula injection attacks in spreadsheet applications.

proxyURL

string

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 forceProxy to true to skip client-side saving. The proxy receives a POST request with specific parameters and returns the decoded file with the "Content-Disposition" header set to attachment; filename="<fileName.csv>". For more details, see the File Saver documentation.

In this article
SelectorInputs
Not finding the help you need?
Contact Support