# Cascading DropDownLists

The [cascading DropDownList](https://demos.telerik.com/kendo-ui/dropdownlist/cascadingdropdownlist) is a series of two or more DropDownLists in which each DropDownList is filtered according to the selected options in the previous DropDownList.

## Basic Concepts and Requirements

The child DropDownList cascades from the parent one if the [`cascadeFrom`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/dropdownlist/configuration/cascadefrom) option is defined. The `cascadeFrom` option has to point to the parent `ID`.

The child DropDownList takes the following actions during initialization:

* Checks if the `cascadeFrom` property is set. If not, cascading is disabled.
* Tries to find the parent DropDownList object. If the result is `null`, then the functionality is omitted.
* Listens to any changes of the parent value.
* If the parent does not have a value, the child is disabled. If the parent has a value, the child is enabled and filters its data accordingly. The filter options are similar to the following:

  ```
    field: "parentID",  // Match the parent's dataValueField.
    operator: "eq",
    value: "" // Replace with the parent's selected value.
  ```

  The following example demonstrates the parameters of this request.

  ```
    filter[logic]: and
    filter[filters][0][field]: parentID
    filter[filters][0][operator]: eq
    filter[filters][0][value]:
  ```

> - The cascading functionality works only when you define the `cascadeFrom` property and initialize the parent DropDownList.
> - The filter operator is always `"eq"`. To filter the data, the child DropDownList uses the `dataValueField` option of the parent DropDownList.

## Enabling Cascading

The following example demonstrates how to initialize a cascading DropDownList.

```
<input id="parent" />
<input id="child" />

<script type="text/javascript">
     $(function() {
         $("#parent").kendoDropDownList({
            dataTextField: "parentName",
            dataValueField: "parentID"
            // Add a comma above before adding more parent options.
         });

         $("#child").kendoDropDownList({
            cascadeFrom: "parent"
            // Add a comma above before adding more child options.
         });
     });
</script>
```

## MVVM Value Binding

The MVVM [`value`](https://www.telerik.com/kendo-jquery-ui/documentation/framework/mvvm/bindings/value) binding updates the `model` when a UI element triggers a `change` event. When widgets cascade, however, they do not raise a `change` event and the `model` is not updated.

* For more information on how to sync a `model` by implementing a [custom MVVM binding](https://www.telerik.com/kendo-jquery-ui/documentation/framework/mvvm/bindings/custom) that will update the model accordingly, refer to [this runnable demo example](https://dojo.telerik.com/@ggkrustev/aSAlU) .
* For more information on why a widget does not trigger a `change` event, refer to [this GitHub discussion](https://github.com/telerik/kendo-ui-core/issues/661).

## See Also

* [Cascading DropDownLists (Demo)](https://demos.telerik.com/kendo-ui/dropdownlist/cascadingdropdownlist)
* [JavaScript API Reference of the DropDownList](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/dropdownlist)
