虽然可以隐藏行,但是可以设置groupFooterTemplate吗? 我希望在按列对结果进行分组但仍显示GroupFooterTemplate时隐藏一行。
我在footerTemplate中总共有两列。所以我想显示余额(如第1总栏 - 第2总栏)。有可能吗?
group: {
field: "BIL_Month", aggregates: [
{ field: "BIL_Debit", aggregate: "sum" },
{ field: "BIL_Credit", aggregate: "sum" },
]
},
aggregate: [
{ field: "BIL_Debit", aggregate: "sum" },
{ field: "BIL_Credit", aggregate: "sum" }
],
},
columns: [
{ field: "BIL_Month", title: "Month", template: '<div class="month">#=BIL_Month#<div>', footerTemplate: "Total" },
{ field: "BIL_Debit", title: "Debit", template: '<div class="debit" style="font-size:12px text-align:center;">#=BIL_Debit#<div>', groupFooterTemplate: "#=sum#", footerTemplate: "#=sum#" },
{ field: "BIL_Credit", title: "Credit", template: '<div class="credit" style="font-size:12px text-align:center;">#=BIL_Credit#<div>', groupFooterTemplate: "#=sum#", footerTemplate: "#=sum#" },
],
答案 0 :(得分:0)
如果您指的是折叠时显示页脚,则会有groupable.showFooter
选项:
$("#grid").kendoGrid({
...
groupable: {
showFooter: true
},
...
});