Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PivotGrid] Aggregation Method Label #11736

Closed
anserban opened this issue Jun 20, 2022 · 2 comments · Fixed by #11763
Closed

[PivotGrid] Aggregation Method Label #11736

anserban opened this issue Jun 20, 2022 · 2 comments · Fixed by #11763
Assignees
Labels
grid: pivot 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@anserban
Copy link

Question

Is there an available property for hiding the aggregation method label (ex. "SUM(Disc01 BaseCcy)" -> "Disc01 BaseCcy")? This would help in saving some space in the column headers section. We can use the menu from the left icon for identifying what agreggation is being used if we need.

  • igniteui-angular version: 13.2.1
  • browser: Chrome

aggregation-method-label

@dkamburov
Copy link
Contributor

@anserban This is a bug, as we have label property and we should use its value on that place

          values: [
            {
                member: 'NumberOfUnits',
                aggregate: {
                    aggregator: IgxPivotNumericAggregate.sum,
                    key: 'SUM',
                    label: ''
                },
                enabled: true

            }

It seems we are currently using the key so as a workaround, until we provide a fix, you can do empty string for a key:

          values: [
            {
                member: 'NumberOfUnits',
                aggregate: {
                    aggregator: IgxPivotNumericAggregate.sum,
                    key: '',
                    label: ''
                },
                enabled: true

            }

@dkamburov dkamburov added 🐛 bug Any issue that describes a bug and removed ❓ question labels Jun 21, 2022
@MayaKirova
Copy link
Contributor

@dkamburov label is actually used for the drop-down content value where you change the aggregation from the chip:
image

It is a separate UI element, so it will not change the text in the chip by design.

Even if we introduce a second separate label property for the chip section (we use key ATM) the scenario will not be fully achieved since this will not remove the (). So you'll get (Disc01 BaseCcy) at most. You cannot get just Disc01 BaseCcy.

I'd suggest adding a custom template for the chip area, something like:

<ng-template igxPivotValueChip let-value>
         {{ value.member }}
    </ng-template>

So that you can fully customize it.

@MayaKirova MayaKirova removed the 🐛 bug Any issue that describes a bug label Jun 22, 2022
@MayaKirova MayaKirova self-assigned this Jun 22, 2022
@MayaKirova MayaKirova added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🆕 status: new labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid: pivot 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants