如何使用带有导出功能的 Kendo-Angular 创建剑道网格:我有带列的剑道网格。列有模板。当我将网格导出到 excel 文件时,带有模板的列不显示
<kendo-grid [data]="dataSource"
[sortable]="true"
[pageable]="false"
[filterable]="false"
[selectable]="false">
<ng-template kendoGridToolbarTemplate>
<button type="button" kendoGridExcelCommand icon="file-excel"></button>
</ng-template>
<kendo-grid-column title="Name">
<ng-template kendoGridCellTemplate let-dataItem>
<span></span>
</ng-template>
</kendo-grid-column>
<kendo-grid-column title="Category">
<ng-template kendoGridCellTemplate let-dataItem>
<span [innerHtml]="selectedProduct?.name"></span>
</ng-template>
</kendo-grid-column>
</kendo-grid>