Posted 14 September 2017, 12:03 pm EST
Hello,
is there a recommended solution to validate flex grid input on row and/or cell level?
The workflow is as followed: The user enters a value and on the on the onCellEditEnding event the input should be sent to a server and a validation result comes back as a promise or observable. If an error occurs, the cell should be highlighted. The validation cannot be hardcoded, it is checked in the backend
I tried two solutions which both don’t really work for me:
- The getError() method of the collection view. I have very large datasets, and if a change occurs, every property of every item is evaluated. So this does not work for me.
- The gridItemFormatter().
I tried to cancel the onCellEditEnding event and continue when the validation promise is resolved, but this does not work obviously.
Is there a solution to make a flexgrid event wait until some async work is done?
I’m really struggling here, so any help is greatly appreciated!
Best regards,