# Angular Grid External Filtering

The [Angular Grid](https://www.telerik.com/kendo-angular-ui/components/grid) allows you to filter its data externally. When using this approach, you can omit setting the built-in [`filterable`](https://www.telerik.com/kendo-angular-ui/components/grid/api/gridcomponent#filterable) option of the Grid, which defaults to `false`.

In order to filter the data, use the [`filterBy`](https://www.telerik.com/kendo-angular-ui/components/data-query/api/filterby) method from the `kendo-data-query` utility package. It accepts two parameters:

* The array to be filtered.
* The filters to be applied, passed as a [`CompositeFilterDescriptor`](https://www.telerik.com/kendo-angular-ui/components/data-query/api/compositefilterdescriptor) object.

```ts
public applyFilter(filter: CompositeFilterDescriptor): void {
    this.gridData = filterBy(sampleProducts, filter);
    // TODO: replace sampleProducts with the data source used by your application.
}
```

## Using the Filter Component

The [`Filter`](https://www.telerik.com/kendo-angular-ui/components/filter) component has an UI that is especially suitable for external filtering. It allows the user to enter the desired filter and constructs the ready-to-use [`CompositeFilterDescriptor`](https://www.telerik.com/kendo-angular-ui/components/data-query/api/compositefilterdescriptor) filter expression as a value.

The following example demonstrates how to implement external filtering using the Filter component. For the purposes of the demo, the Filter component is placed inside a [`Window`](https://www.telerik.com/kendo-angular-ui/components/dialogs/window) component.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/grid/filtering/external/source.txt)

## Suggested Links

* [Filter Component Overview](https://www.telerik.com/kendo-angular-ui/components/filter)
* [API Reference of the Filter Component](https://www.telerik.com/kendo-angular-ui/components/filter/api/filtercomponent)
* [Overview of Filtering](https://www.telerik.com/kendo-angular-ui/components/grid/filtering/basics)
