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="multicolumncombobox" />
<script>

$("#multicolumncombobox").kendoMultiColumnComboBox({
  dataSource: [
    { id: 1, name: "Apples" },
    { id: 2, name: "Oranges" }
  ],
  dataTextField: "name",
  dataValueField: "id",
  columns: [
    { field: "name" },
    { field: "id" }
  ],
  index: 1
});

var multicolumncombobox = $("#multicolumncombobox").data("kendoMultiColumnComboBox");

// get the dataItem corresponding to the selectedIndex.
var dataItem = multicolumncombobox.dataItem();

// get the dataItem corresponding to the passed index.
var dataItem = multicolumncombobox.dataItem(0);
</script>
In this article