saveState

Updates the state of the object and clears all dirty flags. Calling the resetState method will revert any changes to that updated state.

Example - save state of the object

<button id="btn">Save state</button>
<div id="propertyGrid"></div>

<script>
  $("#propertyGrid").kendoPropertyGrid({
    model: {
        foo: "bar",
        baz: 5
    },
    width: 500,
    items: [
      {field:"foo", description:"foo property description"}
    ]
  });

  $("#btn").click(function(){
    var component = $("#propertyGrid").data("kendoPropertyGrid");

    component.saveState();
  });
</script>
In this article