微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Kendo UI TreeList-子聚合隐藏

如何解决Kendo UI TreeList-子聚合隐藏

在我的应用程序中,需要在报告中显示基于级别的记录。我正在使用Kendo UI Treelist进行聚合。数据显示良好,总计显示在所有级别的行中。但是我只需要在父级(顶级)节点中显示总计。 可能仅在parent(Top)节点中显示聚合。有可用的物业吗?或任何其他原生语言?

示例网址: https://dojo.telerik.com/AVeNuluP

谢谢。

解决方法

在剑道角树列表中, 此功能不可用。请参考以下链接,由 Telerik 团队创建,开发此功能取决于商业投票,

https://feedback.telerik.com/kendo-angular-ui/1511260-footer-template-only-for-some-nodes

在 JQuery 剑道树列表中, 我们通过 databound 事件中的以下代码实现了这一点。

$('#grid3 .k-grid-content tbody tr.divfooterrow').remove();
$('#grid3 .k-grid-content tbody').append('<tr class="divfooterrow" data-parentid="null" style="display: table-row;"><td role="gridcell" class="locationName divselected"><span class="k-icon k-i-none"></span></td><td role="gridcell" class="txtalgrit toBeActionedCount">' + qrVMSummary.totalToBeActionedCount.toLocaleString() + '</td><td role="gridcell" class="txtalgrit">' + qrVMSummary.totalToBeActionedPayout.toLocaleString() + '</td><td role="gridcell" class="txtalgrit"> ' + qrVMSummary.totalActionedCount.toLocaleString() + '</td><td role="gridcell" class="txtalgrit">' + qrVMSummary.totalActionedPayout.toLocaleString() + '</td><td role="gridcell" class="colId" style="display: none;"></td><td role="gridcell" class="colParentId" style="display: none;"></td><td role="gridcell" class="colLocationCode" style="display: none;"></td></tr>');

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。