API REFERENCE

setFilterModel

Applies a validated combined filter model. null clears all filter families; inspect reports for invalid models.

What does this API do?

Applies a validated combined filter model. null clears all filter families; inspect reports for invalid models.

Exact input and result types

typescript
setFilterModel(model: SyGridFilterSlice | null): Promise<FilterSliceApplyResult['report']>
ArgumentsRequiredType
modelRequiredSyGridFilterSlice | null

The return type is Promise<FilterSliceApplyResult['report']>.

Usage flow

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

Read related types

Feature explanations and examples