dataItem

Returns the data item at the specified index.

Parameters

index Number (required)

The zero-based index of of the data item.

Returns

Object the data item at the specified index. Returns undefined if the index is not within bounds.

Example - get the item at certain index

<input id="autocomplete" />
<script>
$("#autocomplete").kendoAutoComplete({
    dataSource: [ "Apples", "Oranges" ]
});
var autocomplete = $("#autocomplete").data("kendoAutoComplete");
// Search for items starting with "A" - will open the suggestion popup and show "Apples"
autocomplete.search("A");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(autocomplete.dataItem(0)); // Displays "Apples" in the browser console
</script>
In this article