Skip to content

[Pivot grid] Inserting a new row dimension with API does not update the grid #17591

Description

@mddragnev

Description

Adding a new row dimension in a pivot configuration using the public API does not update the grid unless a new CD is triggered.

Framework

Angular

Angular Version

latest

Ignite UI for Angular Version

22.1.x, 22.2.x

Component / Area

Pivot Grid

Browser

Chrome

Operating System

No response

Command Not Working

Steps to Reproduce

IMPORTANT: remove zonejs from the dev demos beforehand

  1. Open pivot grid dev sample
  2. Add the following button to simulate the issue
    <button (click)="reproduceError()">Reproduce Error</button>
  3. Add the following handler
    public reproduceError() {
        this.grid1.insertDimensionAt({
            memberName: 'ProductCategory',
            displayName: 'Product Category',
            enabled: true
        }, PivotDimensionType.Row, 0);
    }
  1. Run the sample and click the button

Actual Result

Image Clicking the button does update the pivot selector with the added row dimension. However, the grid is not yet updated. If you hover over the grid it triggers a CD which resolves the issue.

Expected Result

The grid should be updated immediately after the button is clicked.

Reproduction URL

No response

Attachments

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions