Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
IgxGrid Validate All Rows
posted

I'm working on an editable grid that the user can add rows to. I'm trying to validate that a newly added row doesn't already exist with the same values somewhere else in the grid. I have a row validator that checks all the rows and will put the new row into an error state if a duplicate is found.

The problem that I can't seem to find a solution for is if the user goes to the already existing row and makes changes to fix the error, the new row that was invalid cannot be revalidated to clear the error.

I tried to prevent leaving the new row by canceling the `rowEdit` event, but canceling removes the row entirely. It's odd.

Is there a way to have the grid run the validation for all rows and all cells?

Thank you.

Parents Reply Children
No Data