ag-grid-angular and cell validation

10.8k views Asked by At

I am quite new to ag-grid.

We are using ag-grid Angular version. All of our cells are editable in grid and there are approx more than 3000 cells.

Having an Angular form for grid and form control for each cell seems to make grid lot slower. specially while generating all form controls on load and before submitting form when all form control's validity is updated.

Has anyone found a better way to perform ag-grid cell validation with Angular?

Thank for any help.

1

There are 1 answers

0
Superman.Lopez On

In the ag-Grid documentation, data validation is suggested with a custom Cell Editor. In the cell editor component you can perform data validation on the cell input directly. Perhaps this gives you better performance than the Angular Form control.

See the "Numeric" column example on their website: https://www.ag-grid.com/example-angular-editor/