dataValueField String|Array (default: null)

The field of the data item that provides the value of the widget. If an array, each level uses the field that is at the same index in the array, or the last item in the array.

Example - set the dataValueField

<input id="dropdowntree"/>

    dataSource: [
        { Name: "Parent1", Id: 1 },
        { Name: "Parent2", Id: 2 }
    dataTextField: "Name",
    dataValueField: "Id"
In this article
Not finding the help you need? Improve this article