0

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

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

先感谢您。

4

1 回答 1

0

在 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>');
于 2021-03-16T15:07:39.377 回答