API REFERENCE
columnGroupToggled
Emitted when a column group header expands or collapses. Read groupId and open for its state.
What does this API do?
Emitted when a column group header expands or collapses. Read groupId and open for its state.
Exact input and result types
columnGroupToggled: { groupId: string; open: boolean }Usage flow
Subscribe with grid.addEventListener('columnGroupToggled', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.
const controller = new AbortController();
grid.addEventListener('columnGroupToggled', event => {
console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();Feature explanations and examples
- Multi-level headers
Multi-level headers place related columns under a shared heading. Unlike row grouping, they do not change data counts or aggregate values.