API REFERENCE

rowGroupChanged

Emitted when row grouping changes. Inspect group fields and whether grouping was cleared.

What does this API do?

Emitted when row grouping changes. Inspect group fields and whether grouping was cleared.

API for Pro features: Row grouping, built-in aggregation and group totals

Exact input and result types

typescript
rowGroupChanged: { groupBy: string | null }

Usage flow

Subscribe with grid.addEventListener('rowGroupChanged', 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('rowGroupChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Feature explanations and examples