toggleItem

Toggles the expanded or collapsed state of a row.

Parameters

row String|Element|jQuery

A string, a DOM element, or a jQuery object which represents the table row. A string is treated as a jQuery selector.

Example - toggle the expanded/collapsed state of an item

<button id="btn">Toggle expanded/collapsed state</button>
<div id="propertyGrid"></div>

<script>
  $("#propertyGrid").kendoPropertyGrid({
    model: {
        details: {
            title: "Title",
            price: 15
        },
        foo: "bar",
        baz: 5
    },
    width: 500
  });

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

    component.toggleItem($("#propertyGrid tbody>tr:nth(0)"));
  });
</script>
In this article