# conditionFilterChanged

Emitted when the AND/OR condition tree changes. A null model means advanced conditions were cleared.

Canonical: https://grid.syidax.com/docs/events/conditionFilterChanged/

<a id="meaning"></a>

## What does this API do?

Emitted when the AND/OR condition tree changes. A null model means advanced conditions were cleared.

API for Pro features: Advanced filter and built-in compound condition editor

<a id="contract"></a>

## Exact input and result types

```typescript
conditionFilterChanged: { model: ConditionNode | null }
```

<a id="usage"></a>

## Usage flow

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

<a id="types"></a>

## Read related types

- [ConditionNode](https://grid.syidax.com/docs/types/ConditionNode.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Condition trees](https://grid.syidax.com/docs/features/advanced-filter.md) — Combine conditions across columns in an AND/OR tree to express business rules, such as large APAC orders or orders for a particular product.
