Edit this page

idField String

The name of the Model's ID field. This field is available only if the id is defined in the Model configuration.

var Person = kendo.data.Model.define({
    id: "personId",
    fields: {
        "name": {
            type: "string"
        "age": {
            type: "number"

var person = new Person({
    personId: 1,
    name: "John Doe",
    age: 42

console.log(person.id); // outputs 1
console.log(person.idField); // outputs "personId"
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article