ExcelExportComponent
Represents the Kendo UI Excel Export component for Angular. Use this component to export data to Excel format.
<kendo-excelexport [data]="gridData" fileName="MyExport.xlsx">
<kendo-excelexport-column field="ProductID" title="Product ID"></kendo-excelexport-column>
<kendo-excelexport-column field="ProductName" title="Product Name"></kendo-excelexport-column>
</kendo-excelexport>
Selector
kendo-excelexport
Export Name
Accessible in templates as #kendoExcelExportInstance="kendoExcelExport"
Inputs
Name | Type | Default | Description |
---|---|---|---|
collapsible |
|
Determines whether groups in the Excel file are collapsible. | |
creator? |
|
Specifies the author of the workbook. | |
data |
|
Specifies the data to export.
When the data is grouped, structure it as described by the
| |
date? |
|
|
Specifies the creation date of the workbook.
The default value is |
fileName |
|
|
Specifies the name of the exported Excel file. |
filterable |
|
Determines whether to enable column filtering in the exported Excel file (see example). | |
forceProxy |
|
Determines whether to force the use of a proxy server for file downloads.
When set to | |
group |
|
Specifies the exported data groups.
The groups must match the
| |
headerPaddingCellOptions |
|
Specifies the options for cells inserted before header cells to align headers and column values when the data is grouped (see example). | |
paddingCellOptions |
|
Specifies the options for cells inserted before data, group, and footer cells to show group hierarchy when the data is grouped (see example). | |
proxyURL |
|
Specifies the URL of the server-side proxy that streams the file to the user. When the browser cannot save files locally (for example, Internet Explorer 9 and earlier, and Safari), the component uses a proxy. You must implement the server-side proxy. The proxy receives a
The proxy must return the decoded file with the |
Methods
save | ||||||
---|---|---|---|---|---|---|
Exports the data to Excel. | ||||||
|
toDataURL | ||||||
---|---|---|---|---|---|---|
Returns a promise that resolves with the file data URI. Use this method to get the Excel file as a data URI. | ||||||
| ||||||
|
workbookOptions | ||||||
---|---|---|---|---|---|---|
Returns | ||||||
| ||||||
|