简体   繁体   English

Kendo UI Grid excel导出

[英]Kendo UI Grid excel export

Assuming I had a grid like this , When I export to excel, it fetch an ID and status display y/n only. 假设我有像栅格 ,当我导出到Excel,它取一个ID和状态显示Y / N只。 What I want to be display is " categoriesName " and " yes/no status". 我想要显示的是“ categoriesName ”和“ yes / no status”。 Can anyone help me to achieve this?Thanks for you time. 任何人都可以帮我实现这个目标吗?谢谢你的时间。

Demo in here 在这里演示

You need to call you function for exporting template based columns. 您需要调用函数来导出基于模板的列。

Add a excelExport: yourFunctionName, to your grid definition. excelExport:yourFunctionName添加到网格定义中。 Here is an example of the function: https://docs.telerik.com/kendo-ui/knowledge-base/grid-export-arbitrary-column-templates 以下是该函数的示例: https//docs.telerik.com/kendo-ui/knowledge-base/grid-export-arbitrary-column-templates

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM