# Filtering

The built-in filtering functionality enables the user to filter the displayed DropDownTree items by their text value.

By default, filtering is disabled and can be performed over string values using the field set as `DataTextField`.

The DropDownTree supports the following filter values:

* `StartsWith`
* `EndsWith`
* `Contains`

The following example demonstrates how to set the filter of the DropDownTree.

```Razor HtmlHelper
    @(Html.Kendo().DropDownTree()
        .Name("dropdowntree")
        .DataTextField("Name")
        .Filter(FilterType.Contains)
        .DataSource(dataSource => dataSource
            .Read(read => read
                .Action("Read_DropDownTreeData", "Home")
            )
        )
    )
```

## See Also

* [Ajax Data Binding by the DropDownTree HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/dropdowntree/remote-data-binding)
* [Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/dropdowntree)
