我有一个Kendo用户界面网格,当我将项目导出到EXCEL时,我需要执行一些列换行(新闻描述列).(在某些列中,我有很多数据,并且在导出的EXCEL中使用这些数据展开.我需要缩小它.)

在我的网格中,我try 了如下所示:

  <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,以便根据指定的宽度对内容进行换行?

column component 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>

Angular相关问答推荐

Angular 17上的material 工具提示的自定义样式

tabindex on button on button in MatMenu in angular不工作

将Angular 17中的http服务与独立组件一起使用

仅在展示时使用垫式步进器

将sass与@Use语句一起使用时出现Angular 新的VITE构建器编译错误

npm install命令在基本Angular 应用程序的天蓝色构建管道中失败

从 applescript 调用Angular 前端以从列表中 Select 一个项目

IonicStorageModule似乎不是 NgModule 类

Angular14:支持旧版浏览器的官方方式是什么?

MatTooltip 显示在 html 原生对话框下方

带有数据的 Angular 模板

将 html ngModel 值传递给服务Angular

如何修复 [Object: null prototype] { title: 'product' }

URL 清理导致嵌入式 YouTube 视频的刷新

如何在Angular 4中为数字管道指定语言环境千位分隔符

如何从组件模板将数组作为 Input() 传递?

Angular2 + Jspm.io:使用类decorator 时需要反射元数据垫片

在 RxJS Observable 中 flatten数组的最佳方法

在Angular 6 中找不到 HammerJS

如何在 Angular CLI 6: angular.json 中添加 Sass 编译?