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

ExcelComponent

Configures the settings for exporting the TreeList to Excel. See example.

html
<kendo-treelist [data]="data" [height]="500">
   <kendo-treelist-excel fileName="Employees.xlsx"></kendo-treelist-excel>
</kendo-treelist>

Selector

kendo-treelist-excel

Inputs

NameTypeDefaultDescription

allPages

boolean

true

Specifies if export should include all pages.

collapsible

boolean

Specifies if item levels in the Excel file are collapsible. Applies only if the TreeList has footers.

creator?

string

Sets the author of the workbook.

date?

Date

Sets the date the workbook was created. Defaults to new Date().

expandAll

boolean

true

Specifies if the export should expand all items or use the current TreeList state.

fetchData

(component: TreeListComponent) => ExcelExportData

The function used to get the exported data options. By default, uses the current TreeList data. To export data different from the current TreeList data, provide a custom function.

fileName

string

"Export.xlsx"

Specifies the file name of the exported Excel file.

filterable

boolean

Enables or disables column filtering in the Excel file. This is different from the TreeList filtering feature.

forceProxy

boolean

If set to true, forwards the content to proxyURL even if the browser supports saving files locally.

paddingCellOptions

CellOptions

The options for the cells inserted before the data to indicate the hierarchy.

proxyURL

string

The URL of the server-side proxy that streams the file to the user. Use a proxy if the browser cannot save files locally.

Optionally, set up a proxy to reduce memory usage. This avoids copying the file contents into memory, but transmits it over the network instead. For this use case, set forceProxy to true to skip client-side saving even in browsers that support it.

The proxy receives a POST request with specific parameters in the request body. See example. The proxy returns the decoded file with the "Content-Disposition" header set to attachment; filename="<fileName.xslx>".

For details on server-side proxy usage and implementation, see the File Saver documentation.

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