New to Kendo UI for jQueryStart a free 30-day trial

Set

methods

Sets the value of the specified field.

Parameters:nameString

The name of the field whose value will be returned.

valueNumber|String|Date|Object

The new value of the field.

<script>
var observable = new kendo.data.ObservableObject({ name: "John Doe" });
observable.set("name", "Jane Doe"); // set the value
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(observable.get("name")); //outputs the new value "Jane Doe"
</script>
<script>
var observable = new kendo.data.ObservableObject({ person: { name: "John Doe" } });
observable.set("person.name", "Jane Doe"); // set the value
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(observable.get("person.name")); //outputs the new value "Jane Doe"
</script>
Not finding the help you need?
Contact Support