【问题标题】:Kendo UI Angular Grid - Custom HeadersKendo UI Angular Grid - 自定义标题
【发布时间】:2017-02-17 10:43:13
【问题描述】:

在网格的页脚中,您可以在每一列中执行以下操作,所有值都将位于同一页脚中:

    <template kendoGridGroupFooterTemplate let-group="group" let-aggregates>
        <span class="pull-right">{{(aggregates["dProfit"].sum / aggregates["net_tot"].sum) * 100|number:'1.2-2'}}</span>
    </template>

你可以在标题中这样做吗?

【问题讨论】:

    标签: angular kendo-ui-angular2


    【解决方案1】:

    您可以对 GroupHeaderTemplate 执行相同的操作。看看 - http://www.telerik.com/kendo-angular-ui/components/grid/api/GroupHeaderTemplateDirective/

    【讨论】:

    • 我试过了,但只有当 GroupHeader 与 Group 在同一列时才有效。我需要能够使用来自不同列的值制作自定义标题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-20
    • 2018-07-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多