dataItem
Returns the data item at the specified index. If the index is not specified, the selected index will be used.
Parameters
index jQuery|Number
(optional)
The zero-based index of the data record.
Returns
Object
The raw data record. Returns undefined if no data.
Example
<input id="dropdownlist" />
<script>
$("#dropdownlist").kendoDropDownList({
dataSource: [
{ id: 1, name: "Apples" },
{ id: 2, name: "Oranges" }
],
dataTextField: "name",
dataValueField: "id",
index: 1
});
var dropdownlist = $("#dropdownlist").data("kendoDropDownList");
// get the dataItem corresponding to the selectedIndex.
var dataItem = dropdownlist.dataItem();
// get the dataItem corresponding to the passed index.
var dataItem = dropdownlist.dataItem(0);
</script>