# Clear Filter on Opening the ComboBox

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® ComboBox for jQuery</td>
 </tr>
 <tr>
  <td>Operating System</td>
  <td>Windows 10 64bit</td>
 </tr>
 <tr>
  <td>Visual Studio Version</td>
  <td>Visual Studio 2017</td>
 </tr>
 <tr>
  <td>Preferred Language</td>
  <td>JavaScript</td>
 </tr>
</table>

## Description

How can I clear the filter of the Kendo UI ComboBox on opening the widget?

## Solution

The following example demonstrates how to achieve the desired scenario.

```dojo
  <div id="example">
    <div class="demo-section k-header">
      <h4>Products</h4>
      <input id="products" style="width: 400px" />
    </div>
    <script>
      $(document).ready(function() {
        $("#products").kendoComboBox({
          placeholder: "Select product",
          dataTextField: "ProductName",
          dataValueField: "ProductID",
          filter: "contains",
          autoBind: false,
          minLength: 3,
          dataSource: {
            type: "odata-v4",
            serverFiltering: true,
            transport: {
              read: {
                url: "https://demos.telerik.com/service/v2/odata/Products",
              }
            }
          },
          open: function() {
            var filters = this.dataSource.filter();

            if (filters) {
              //clear applied filters
              this.dataSource.filter({});
            }
          }
        });
      });
    </script>

    <style scoped>
      .demo-section {
        width: 400px;
      }
    </style>
  </div>
```

## See Also

* [ComboBox JavaScript API Reference](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/combobox)
* [Bypass Boundary Detection](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/bypass-boundary-detection)
* [Configure Deferred Value Binding](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/deferred-value-binding)
* [Implement Cascading with Local Data](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/cascading-with-local-data)
* [Make Visible Input Readonly](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/readonly-visible-input)
* [Open ComboBox When onFocus is Triggered](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/open-on-focus)
* [Prevent Adding Custom Values](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/prevent-custom-values)
* [Underline Matched Search](https://www.telerik.com/kendo-jquery-ui/documentation/knowledge-base/underline-matched-search)
