New to Kendo UI for jQueryStart a free 30-day trial

Get

methods

Gets the data item (model) with the specified id.

The get method requires the schema.model option to be set and the id of the model to be specified. The get method will look for items only on the current page if serverPaging is enabled.

Parameters:idNumber|String

The id of the model to look for.

Returns:kendo.data.Model

—The model instance. Returns undefined if a model with the specified id is not found.

<script>
var dataSource = new kendo.data.DataSource({
  data: [
    {id: 1, name: "Jane Doe" },
    {id: 2, name: "John Doe" }
  ],
  schema: {
    model: { id: "id" }
  }
});
dataSource.fetch(function() {
  var dataItem = dataSource.get(1);
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(dataItem.name); // displays "Jane Doe"
});
</script>
Not finding the help you need?
Contact Support