0
我有劍道網格footerTemplate。我已經成功地將這個網格導出爲excel。但是,導出的excel footerTemplate顯示html字符串。當輸出Kendo網格footerTemplate顯示html字符串?
樣品網格列:
{
field: "January",
title: "January",
aggregates: ["sum"],
filterable: false,
resourcename: "january",
type: "currency",
footerTemplate: function (data) {
return "<div style='white-space:initial;float:right'>" + kendo.toString(data.January.sum, "n0") + "</div>";
}
}
問: 如何解決這個HTML字符串問題?
謝謝.......
是的。如何在excel中對齊footerTemplate? – JiLaBaJi
我已經更新了答案:) – Sandman
非常感謝.... – JiLaBaJi