resetState

Cancels any changes in the values of the object's properties. Resets the object to the initial state or the latest state set via the saveState method.

Example - reset to initial state

<button id="btn">Reset 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.resetState();
  });
</script>
In this article