parent

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

Returns

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

Example - get the parent

<script>
var array = new kendo.data.ObservableArray([1, 2]);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(array.parent()); // outputs "undefined"
var observable = kendo.observable({ numbers: [1, 2] });
var numbers = observable.get("numbers");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(numbers.parent() === observable); // outputs "true"
</script>
In this article