New to Kendo UI for jQuery? Start a free 30-day trial

DataTextField

configuration

The field of the data item that provides the text content of the list items. Based on this field, the widget filters the data source.

If you define the dataTextField option, you also have to set dataValueField.

Default: ""

<select id="listBox"></select>
<script>
$("#listBox").kendoListBox({
    dataSource: [
        { name: "Item 1", id: 1 },
        { name: "Item 2", id: 2 }
    ],
    dataTextField: "name",
    dataValueField: "id"
});
</script>
Not finding the help you need?
Contact Support