# Filtering

By default, the filtering functionality of the Telerik UI Grid for ASP.NET MVC is disabled.

## Getting Started

To control filtering in the Grid, use the `Filterable` property.

```Razor HtmlHelper
    @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.OrderViewModel>()
        .Name("Grid")
        .Filterable() // Enable the Menu filter mode.
        ...
```

Each `Filterable` configuration of the columns allows the setting of a custom DataSource.

```Razor HtmlHelper
    ...
    columns.Bound(e => e.LastName).Width(220).Filterable(ftb => ftb.Multi(true)
        .DataSource(ds => ds.Read(r => r.Action("Unique", "Grid").Data("{ field: 'LastName' }")))
    );
    .ShowIndexes(true))
```

> Only columns [bound to a field](https://docs.telerik.com/kendo-ui/api/ui/grid/configuration/columns.field) can be filterable. To enable filtering on a column bound to an object, [bind the column to a field of that object](https://docs.telerik.com/aspnet-core/knowledge-base/grid-enable-operations-for-object-column).

## Filter Modes

The Grid supports the following filter modes:

* [Filter row (demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-row)
* [Filter checkboxes (demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-multi-checkboxes)
* [Filter menu (demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-menu-customization)

To set the desired filter mode, use the `Filterable->Mode` property. You can enable checkbox list filtering in the filter menu of the Grid component by specifying the `Multi(true)` setting for the relevant Grid columns.

```Razor HtmlHelper
    ...
    columns.Bound(p => p.UnitsInStock).Width(140).Filterable(ftb => ftb.Multi(true).CheckAll(true));
```

## Filter Operators

* [List of the operators for the different data types](https://docs.telerik.com/kendo-ui/api/ui/grid/configuration/filterable.operators#related-properties)

## See Also

* [Filter Rows by the Grid HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-row)
* [Filter Checkboxes by the Grid HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-multi-checkboxes)
* [Customizing the Filter Menu by the Grid HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-menu-customization)
* [Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/grid)
