我正在尝试将excel导出功能添加到Kendo UI angular 2网格,但在角度2应用程序加载时出现错误:
原文链接:https://www.f2er.com/angularjs/142040.htmlCan'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>