Edit this page

parent

Gets the parent of the object if such parent exists.

Returns

kendo.data.ObservableObject the parent of the object; undefined if the object is not nested and doesn't have a parent.

Example - get the parent object

<script>
var observable = new kendo.data.ObservableObject({ person: { name: "John Doe" } });
var person = observable.get("person");
console.log(observable.parent()); // outputs "undefined"
console.log(person.parent() === observable); // outputs "true"
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy