在 Pivot 网格(Kendo UI asp.net MVC)中,我试图隐藏最后一列和最后一行但未能成功(即显示网格中默认的总字段的列和行)。我在谷歌上搜索,但我没有得到正确的答案。
谁能帮我做?
@(Html.Kendo().PivotGrid<xxx>()
.Name("xxxx")
.HtmlAttributes(new { @class = "hidden-on-narrow" })
.Filterable(true)
.Height(600)
.DataCellTemplateId("dataCellTemplate")
.ColumnHeaderTemplateId("headerTemplate")
.RowHeaderTemplateId("rowHeaderTemplate")
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.Transport(transport => transport.Read("xxx_Read", "xxx"))
.Schema(schema => schema
.Cube(cube => cube
.Dimensions(dimensions =>
{
dimensions.Add(model => model.SSName).Caption("SSName");
dimensions.Add(model => model.SVName).Caption("SVName");
})
)
)
.Columns(columns =>
{
columns.Add("SSName").Expand(true);
})
.Rows(rows => rows.Add("SVName").Expand(true))
)
Events(events =>
events.DataBound("xxxx_dataBound");
events.DataBinding("xxxx_dataBinding");
)