我有一个 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>
能否为导出列指定一个
width
,以便内容按照指定的宽度换行?
<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>