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

[igxPivot] When all dimensions are initially collapsed and first dimension has children the second dimension data does not display correctly. #10639

Closed
MayaKirova opened this issue Nov 26, 2021 · 1 comment
Assignees
Labels
🐛 bug Any issue that describes a bug grid: pivot ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@MayaKirova
Copy link
Contributor

Description

When all dimensions are initially collapsed ([defaultExpandState] = 'false' or not set) and first dimension has children the second dimension data does not display correctly.

  • igniteui-angular version:
  • browser:

Steps to reproduce

  1. Run the pivot-hierarchy sample with config:
columns: [
            {
                memberName: 'AllSeller',
                memberFunction: () => 'All Sellers',
                enabled: true,
                childLevel:
                {
                    memberName: 'Seller',
                    memberFunction: (data) => data.Seller.Name,
                    enabled: true,
                },
            },
        ],
        rows: [
            {
                memberName: 'AllProduct',
                memberFunction: () => 'All Products',
                enabled: true,
                childLevel:
                {
    
                    memberName: 'Product',
                    memberFunction: (data) => data.Product.Name,
                    enabled: true
                }
            },
            {
                memberName: 'City',
                memberFunction: (data) => data.Seller.City,
                enabled: true,
            },
        ],

Result

Observe that the second dimension does not show its values.

image

Expected result

Should show all unique City values as rows.

Note: Works as expected if [defaultExpandState] = 'true' .

Attachments

Attach a sample if available, and screenshots, if applicable.

@MayaKirova MayaKirova added 🐛 bug Any issue that describes a bug grid: pivot labels Nov 26, 2021
@skrustev
Copy link
Member

Also if expanded there are cases where there are multiple Cities even when expanded, but the they are not shown
Cities

@skrustev skrustev self-assigned this Nov 26, 2021
@skrustev skrustev added 🛠️ status: in-development Issues and PRs with active development on them and removed 🆕 status: new labels Nov 26, 2021
@skrustev skrustev added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Any issue that describes a bug grid: pivot ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

No branches or pull requests

3 participants