# Implement Cascading with Local Data in 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 cascade Kendo UI ComboBoxes when working with local data?

## Solution

The following example demonstrates how to achieve the desired scenario.

```dojo
category: <select id="category"></select>
product: <select id="product"></select>

<script>
    var category = $("#category").kendoComboBox({
        placeholder: "Select category...",
        dataSource: [
            { CategoryID: 1, CategoryName: "Beverages" },
            { CategoryID: 2, CategoryName: "Condiments" },
            { CategoryID: 3, CategoryName: "Confections" }
        ],
        dataValueField: "CategoryID",
        dataTextField: "CategoryName",
        filter: "contains"
    }).data("kendoComboBox");

    var product = $("#product").kendoComboBox({
        placeholder: "Select product...",
        dataSource: [
            {"ProductID":1,"ProductName":"Chai","CategoryID":1},
            {"ProductID":3,"ProductName":"Aniseed Syrup","CategoryID":2},
            {"ProductID":4,"ProductName":"Chef Anton's Cajun Seasoning","CategoryID":2},
            {"ProductID":16,"ProductName":"Pavlova","CategoryID":3},
            {"ProductID":19,"ProductName":"Teatime Chocolate Biscuits","CategoryID":3}              
        ],
        dataValueField: "ProductID",
        dataTextField: "ProductName",
        cascadeFrom: "category",
        filter: "contains"
    }).data("kendoComboBox");

    category.value("2");
    product.value("3");
</script>
```

## 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)
