get

Gets the value of the specified field.

Returns

Object—The value of the specified field.

Parameters

name String

The name of the field whose value will be returned.

Example - get the value of a field

<script>
var observable = new kendo.data.ObservableObject({ name: "John Doe" });
var name = observable.get("name");
console.log(name); //outputs "John Doe"
</script>

Example - get the value of a nested field

<script>
var observable = new kendo.data.ObservableObject({ person: { name: "John Doe" } });
var name = observable.get("person.name"); // use dot notation to denote nested fields
console.log(name); //outputs "John Doe"
</script>
In this article
Not finding the help you need? Improve this article