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.
var dataItem = combobox.dataItem();

// get the dataItem corresponding to the passed index.
var dataItem = combobox.dataItem(0);
</script>
In this article
Not finding the help you need?