我正在构建一个在网格中显示一些结果的应用程序。网格是在后面的 C# 代码中动态创建的。我正在使用以下代码在网格上显示分组。但我也想有一个总结行。我已经用插件试过了,但它似乎不起作用。
private GroupingView group = new GroupingView();
group.ID = "gv1";
group.HideGroupedColumn = true;
group.GroupTextTpl = "{text} ({[values.rs.length]} {[values.rs.length > 1 ? \"Items\" : \"Item\"]})";
group.EnableRowBody = true;
GridPanelResults.View.Add(group);
GroupingSummary gsPlugin = new GroupingSummary();
GridPanelResults.Plugins.Add(gsPlugin);
这是我需要的摘要行 http://examples.ext.net/#/GridPanel/...oupingSummary/
有任何想法吗?