angular-ui/ui-grid

Group aggregates with filters rendering blank header rows

Open

#4,679 创建于 2015年11月11日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)JavaScript (5,395 star) (2,496 fork)batch import
good first issue

描述

Example here with the Balance column: http://plnkr.co/edit/dPTSR4HewMocYDqsmpEm?p=preview

What I'm trying to accomplish is have the Balance column header be <aggregation label> <rendered content> and the cell values be the default <rendered content> with the currency filter applied.

When a filter is not applied (i.e. the currency cellFilter is removed) I get the correct header behavior, but then neither the content nor the header is rendered with the filter as I would like it to be.

I've tried a few different things with the customTreeAggregationFinalizerFn function, but nothing seems to quite get the effect I'm looking for. It seems to be either I can get the header rows rendered correctly or I can get the data rows rendered correctly, but not both at once.

Is it possible to do this?

贡献者指南