value String|Array

Define the value of the widget. It accepts 'String' when it is in single selection mode and 'Array' when multiple selection is enabled via checkboxes property.

Example

Open In Dojo
<input id="dropdowntree" />
<script>
    $("#dropdowntree").kendoDropDownTree({
        dataSource: [{ text: "item1", value: 1 }, { text: "item2", value: 2 }],
        value: '1'
    });
</script>

Important: Define a list of data items if widget is not initially bound

Example

Open In Dojo
<input id="dropdowntree" />
<script>
    $("#dropdowntree").kendoDropDownTree({
        autoBind: false,
        dataTextField: "productName",
        dataValueField: "productId",
        value: { productName: "Item 1", productId: "1" }
    });
</script>
In this article