API REFERENCE

autoSizeColumn

Measures currently available content and applies an appropriate width to one column.

What does this API do?

Measures currently available content and applies an appropriate width to one column.

Exact input and result types

typescript
autoSizeColumn(colId: string): Promise<number | null>
ArgumentsRequiredType
colIdRequiredstring

The return type is Promise<number | null>.

Usage flow

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

Feature explanations and examples