API REFERENCE

cellValidationFailed

Emitted when validation fails. Use the target cell, input, and message to guide corrections.

What does this API do?

Emitted when validation fails. Use the target cell, input, and message to guide corrections.

Exact input and result types

typescript
cellValidationFailed: { rowIndex: number; field: string; value: unknown; message: string }

Usage flow

Subscribe with grid.addEventListener('cellValidationFailed', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('cellValidationFailed', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Feature explanations and examples