angular-ui/ui-grid

Group aggregates with filters rendering blank header rows

Open

#4,679 opened on Nov 11, 2015

View on GitHub
 (7 comments) (0 reactions) (0 assignees)JavaScript (2,496 forks)batch import
good first issue

Repository metrics

Stars
 (5,395 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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?

Contributor guide