dataTextField String|Array (default: null)

Sets the field of the data item that provides the text content of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.

Important In case when array is used, filter is not supported because hierarchical data source does not support filtering by different fields yet.

Example - set the dataTextField

<input id="dropdowntree"/>

<script>
$("#dropdowntree").kendoDropDownTree({
    dataSource: [
        { Name: "Parent1", Id: 1 },
        { Name: "Parent2", Id: 2 }
    ],
    dataTextField: "Name",
    dataValueField: "Id"
});
</script>
In this article
Not finding the help you need? Improve this article