Kendo UI 网格中的列换行 Excel 导出

问题描述 投票:0回答:1

我有一个 Kendo UI 网格,当我将项目导出到 excel 时,我需要做一些列换行(newsDescription 列)。(在某些列中,我有大量数据,在导出的 excel 中用该数据扩展。我需要缩小它.)

在我的网格中,我尝试过如下,

  <kendo-grid-excel [fileName]="fileName" [fetchData]="fullData">
                        <kendo-excelexport-column field="newsName" title="Name"></kendo-excelexport-column>
                        <kendo-excelexport-column field="newsCategory" title="Category"></kendo-excelexport-column>
                        <kendo-excelexport-column field="newsDescription" title="Description" [CellOptions] = {wrap:true}></kendo-excelexport-column>
                    </kendo-grid-excel>
angular kendo-ui kendo-grid kendo-ui-angular2
1个回答
0
投票

能否为导出列指定一个

width
,以便内容按照指定的宽度换行?

列组件API

<kendo-grid-excel [fileName]="fileName" [fetchData]="fullData">
    <kendo-excelexport-column field="newsName" title="Name"></kendo-excelexport-column>
    <kendo-excelexport-column field="newsCategory" title="Category"></kendo-excelexport-column>
    <kendo-excelexport-column field="newsDescription" title="Description" [width]="250" [CellOptions] = {wrap:true}></kendo-excelexport-column>
</kendo-grid-excel>
© www.soinside.com 2019 - 2024. All rights reserved.