API REFERENCE

setColumnFilterModel

Sets one column's filter model and returns the result. Separate from setFilterModel, which changes combined filter state.

What does this API do?

Sets one column's filter model and returns the result. Separate from setFilterModel, which changes combined filter state.

Exact input and result types

typescript
setColumnFilterModel<TModel = unknown>(columnId: string, model: TModel | null): Promise<boolean>
ArgumentsRequiredType
columnIdRequiredstring
modelRequiredTModel | null

The return type is Promise<boolean>.

Usage flow

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

Feature explanations and examples