parent

Gets the parent of the object if such a parent exists.

Returns

kendo.data.ObservableObject—The parent of the object. Returns undefined if the object is not nested and does not have a parent.

Example - get the parent object

<script>
var observable = new kendo.data.ObservableObject({ person: { name: "John Doe" } });
var person = observable.get("person");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(observable.parent()); // outputs "undefined"
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(person.parent() === observable); // outputs "true"
</script>
In this article