dataItem

Returns the data item at the specified index. If the index is not specified, the selected index will be used.

Parameters

index Number (optional)

The zero-based index of the data record.

Returns

Object The raw data record. Returns undefined if no data.

Example

<input id="combobox" />
<script>

$("#combobox").kendoComboBox({
  dataSource: [
    { id: 1, name: "Apples" },
    { id: 2, name: "Oranges" }
  ],
  dataTextField: "name",
  dataValueField: "id",
  index: 1
});

var combobox = $("#combobox").data("kendoComboBox");

// get the dataItem corresponding to the selectedIndex. Result can be seen in the browser console.
var dataItem = combobox.dataItem();
console.log(dataItem.name);

// get the dataItem corresponding to the passed index. Result can be seen in the browser console.
dataItem = combobox.dataItem(0);
console.log(dataItem.name);
</script>
In this article