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 Validation]: formGroup has incorrect valid state if first editable column has custom template #15379

Open
RivaIvanova opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels
🐛 bug Any issue that describes a bug forms: validation Forms validation related, including ngModel.status aka VALID/INVALID/TOUCHED/PRISTINE etc. grid: row-editing grid 🆕 status: new

Comments

@RivaIvanova
Copy link
Member

Description

If the IgxGrid is configured via reactive forms so that all columns are required and we want to prevent row adding if the formGroup state is invalid, the result differs when the first editable column has a default template and a custom template.

(1) If the first column has a default template, we add a new row via the action strip and click "Apply", the row is NOT added since the fields are not populated with data.

(2) If the first column has a custom template, we add a new row via the action strip and click "Apply", the row IS added even though the fields are not populated with data.

Maybe related to #13165

  • igniteui-angular version: master, 19.0.x, 18.2.x
  • browser: any

Steps to reproduce

  1. Open this sample.
  2. Add a row via the action strip.
  3. Click "Apply"

Result

For the second grid, the row is added even though the fields are not populated with data and they are set as required.

Expected result

The observed behavior in the first grid - the row should not be added and the formGroup state should be invalid.

Attachments

Image

@RivaIvanova RivaIvanova added 🐛 bug Any issue that describes a bug 🆕 status: new forms: validation Forms validation related, including ngModel.status aka VALID/INVALID/TOUCHED/PRISTINE etc. grid grid: row-editing labels Feb 19, 2025
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 forms: validation Forms validation related, including ngModel.status aka VALID/INVALID/TOUCHED/PRISTINE etc. grid: row-editing grid 🆕 status: new
Projects
None yet
Development

No branches or pull requests

2 participants