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

IgxHierachicalGrid: data is not updated for child grids #13495

Closed
ddaribo opened this issue Sep 26, 2023 · 0 comments · Fixed by #13497, #13499 or #13498
Closed

IgxHierachicalGrid: data is not updated for child grids #13495

ddaribo opened this issue Sep 26, 2023 · 0 comments · Fixed by #13497, #13499 or #13498
Assignees
Labels
🐛 bug Any issue that describes a bug grid: hierarchical-grid version: 15.1.x version: 16.0.x version: 16.1.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@ddaribo
Copy link
Contributor

ddaribo commented Sep 26, 2023

Description

When adding new child records to the array bound to the IgxHierarchicalGridComponent's data and reassigning it to reflect the change (e.g. this.hgrid.data = [...this.localData]), new child records are not reflected in child grids.

  • igniteui-angular version: 16.0.x, 16.1.x, 15.1.x
  • browser: any

Steps to reproduce

  1. Open this sample
  2. Expand any parent row
  3. Click the + action strip button over any row in the "Albums" child grid.
  4. Observe the console and the child grid.

Result

New entries are added to the data as visible in the console, however, the child grid does not reflect that.

Expected result

Display the new records in the child grid.

Attachments

Probably related to the changes introduced for this issue, as the child grids are dynamically created from v. 16.0.x on.
Before that, the data property was bound in the template:
image

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