繁体   English   中英

Kendo UI TreeList - 子聚合隐藏

[英]Kendo UI TreeList - Child Aggregate Hide

在我的应用程序中,需要在报告中显示基于级别的记录。 我正在使用带有聚合的 Kendo UI Treelist。 数据显示良好,总计显示在所有级别的行中。 但我只需要在父(顶级)级别节点中显示总计。 可以仅在父(顶部)节点中显示聚合。 有房源吗? 或任何其他本地人?

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

先感谢您。

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

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

在 JQuery Kendo Tree 列表中,我们通过以下数据绑定事件中的代码实现了这一点。

$('#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>');

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM