parent

Gets the parent of the array if such parent exists.

Returns

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

Example - get the parent

<script>
var array = new kendo.data.ObservableArray([1, 2]);
console.log(array.parent()); // outputs "undefined"
var observable = kendo.observable({ numbers: [1, 2] });
var numbers = observable.get("numbers");
console.log(numbers.parent() === observable); // outputs "true"
</script>
In this article
Not finding the help you need?