[英]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.