我正在尝试将 excel 导出功能添加到 Kendo UI angular 2 网格,但是在加载 angular 2 应用程序时出现错误:
Can't bind to 'toolbar' since it isn't a known property of 'kendo-grid'.
这是我正在使用的代码片段:
<kendo-grid [data]="gridView" [height]="700" [pageSize]="pageSize"
[toolbar]="['excel']"
[excel]="{fileName: 'Reprocessingdetails.xlsx'}"
[skip]="skip"
[pageable]="{
info: true,
type: 'input',
pageSizes: false,
previousNext: true
}"
[scrollable]="'none'"
(pageChange)="pageChange($event)"
[sortable]="{ mode: 'single', allowUnsort: true }"
[sort]="sort"
(sortChange)="reprocessingResultsSortChange($event)"
>
<kendo-grid-column field="isSelected" title="Select">
<template kendoCellTemplate let-dataItem>
<input type="checkbox" [(ngModel)]="dataItem.isSelected" />
</template>
</kendo-grid-column>
<kendo-grid-column field="reprocessingType" title="Reprocessing Type">
</kendo-grid-column>
</kendo-grid>
路线图中没有提到 Excel 导出功能,所以假设它已经存在是否公平?如果是这样,我如何使上述代码段起作用?有什么帮助吗?