# Add a Custom ColumnMenu Date Filter to the TreeList

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>4.4.0</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® KendoReact TreeList</td>
	    </tr>
    </tbody>
</table>

## Description

How can I create a custom date range filter as a 'From' and 'To' filter?

## Solution

A custom column menu should be created through which we set the [`filterContent`](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenuprops#filtercontent) property to the custom filter we want to create. In the custom filter we render a DatePicker, whose onChange event calls the onColumnMenuFilterChange event, which sets the state of the filter and updates the TreeList accordingly.
We set the default operators through the [`initialFilter`](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenuprops#initialfilter) property to match those of the filter we want to create, in this case greater than and equal to ("gte") and less than and equal to ("lte").

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/treelist/custom-columnmenu-date-filter/source.txt)
