API REFERENCE

getValidationErrors

Reads row, field, value, and message information for current validation errors. Connect to save guidance or an error list.

What does this API do?

Reads row, field, value, and message information for current validation errors. Connect to save guidance or an error list.

Exact input and result types

typescript
getValidationErrors(): Promise<
    Array<{ rowIndex: number; rowId: unknown; field: string; value: unknown; message: string }>
  >
ArgumentsRequiredType

The return type is `Promise< Array<{ rowIndex: number; rowId: unknown; field: string; value: unknown; message: string }> >`.

Usage flow

After registering and initializing the Grid element, call grid.getValidationErrors(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Feature explanations and examples