dataValueField String(default: "")

The field of the data item that provides the value of the widget.

When dataValueField is defined, the dataTextField option also should be set.

Example - set the dataValueField

<input id="dropdownlist" />
    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