【发布时间】:2014-03-06 13:00:34
【问题描述】:
我正在用 12 列(12 个月)绑定剑道网格,我想要最后一列,它将是所有 12 个月(全年)的汇总。 我有这个:
@(Html.Kendo().Grid<WebAnalise.Models.map_sel_fabr_prod>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.nameFabr).Visible(true).Width(50).Title("Fabr");
columns.Bound(p => p.nameProd).Width(100).Title("Prod");
columns.Bound(p => p.tot01).Width(30).Title("Jan");
columns.Bound(p => p.tot02).Width(30).Title("Fev");
columns.Bound(p => p.tot03).Width(30).Title("Mar");
columns.Bound(p => p.tot04).Width(30).Title("Abr");
columns.Bound(p => p.tot05).Width(30).Title("Mai");
columns.Bound(p => p.tot06).Width(30).Title("Jun");
columns.Bound(p => p.tot07).Width(30).Title("Jul");
columns.Bound(p => p.tot08).Width(30).Title("Ago");
columns.Bound(p => p.tot09).Width(30).Title("Set");
columns.Bound(p => p.tot10).Width(30).Title("Out");
columns.Bound(p => p.tot11).Width(30).Title("Nov");
columns.Bound(p => p.tot12).Width(30).Title("Dez");
//我要在此处添加新列!像这样的东西,但是聚合! (tot01 + tot02 + tot03 ... + tot12)!!不仅来自一列的值:
columns.Bound(p => p.tot01).Width(30).Title("TOT");
})
有人可以帮忙吗?
【问题讨论】:
标签: c# kendo-ui kendo-grid kendo-asp.net-mvc