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

Grid does not recreate its columns collection after data change #14315

Closed
hanastasov opened this issue Jun 3, 2024 · 1 comment · Fixed by #14493
Closed

Grid does not recreate its columns collection after data change #14315

hanastasov opened this issue Jun 3, 2024 · 1 comment · Fixed by #14493
Assignees
Labels
🐛 bug Any issue that describes a bug grid ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@hanastasov
Copy link
Contributor

hanastasov commented Jun 3, 2024

Steps to reproduce

  1. Add grid with autoGenerate set to true
    1. In ngOnInit, set this.grid.shouldGenerate = true

Result 1:
See console:
image

  1. Change the collection that is bound to the grid data property
this.data = this.data3;

Result

Grid does not recreate its columns based on the new data bound to the data input property

Expected result

Grid to recreate its columns based on the new data bound to the data input property and No errors to be thrown initially.

@hanastasov hanastasov added 🐛 bug Any issue that describes a bug 🆕 status: new grid labels Jun 3, 2024
@hanastasov
Copy link
Contributor Author

Changing autoGenerate to true just before changing the data works:

        this.grid1.shouldGenerate = true;
        this.data = this.data3;

@hanastasov hanastasov self-assigned this Jun 5, 2024
@hanastasov hanastasov removed their assignment Jul 8, 2024
@georgianastasov georgianastasov self-assigned this Jul 9, 2024
@georgianastasov georgianastasov added 🛠️ status: in-development Issues and PRs with active development on them and removed 🆕 status: new labels Jul 9, 2024
@georgianastasov georgianastasov 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 Jul 9, 2024
@georgianastasov georgianastasov added 🛠️ status: in-development Issues and PRs with active development on them ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. 🛠️ status: in-development Issues and PRs with active development on them labels Jul 17, 2024
@georgianastasov georgianastasov 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 Jul 18, 2024
@kacheshmarova kacheshmarova reopened this Jul 30, 2024
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 ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
3 participants