简体   繁体   English

Kendo Grid带边框导出到Excel

[英]Kendo Grid Export To Excel With Border

Currently kendo grid can easily export it's data to excel but doesn't show border among the columns at all. 目前,kendo网格可以轻松地将其数据导出到excel,但根本不显示列之间的边界。 How can I format the excel worksheets so that the data will be in full border? 如何设置Excel工作表的格式,使数据为全边框? Are there any setting related to worksheet customization in order to achieved that? 是否有任何与工作表自定义相关的设置才能实现? Thanks 谢谢

You can view some examples by kendo in the link below: 您可以在下面的链接中查看kendo的一些示例:

http://demos.telerik.com/kendo-ui/grid/excel-export# http://demos.telerik.com/kendo-ui/grid/excel-export#

You can edit a few things about the data rendering such as right to left allignement but you can't customize the style of the worksheet. 您可以编辑一些有关数据呈示的内容,例如从右到左分配,但是您不能自定义工作表的样式。

From the kendo grid documentation about customization of the Excel exported from the kendo grid and it's limitations: 从kendo 网格文档中获得有关从kendo网格导出的Excel的自定义及其限制的信息:

Limitations 限制

Column Templates 列模板

The Grid does not use column templates during the Excel export— it exports only the data . 在Excel 导出期间,网格不使用列模板, 而是仅导出数据 The reason for this behavior is that a column template might contain arbitrary HTML which cannot be converted to Excel column values. 此行为的原因是,列模板可能包含无法转换为Excel列值的任意HTML。 For more information on how to use a column template that does not contain HTML, refer to this column template example. 有关如何使用不包含HTML的列模板的更多信息,请参考此列模板示例。

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

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