Edit this page

expandRow

Expands the specified master table row. This shows its detail table row.

Parameters

row String |Element |jQuery

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

Example - expand the first master table row

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { field: "age" }
  ],
  dataSource: [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 33 }
  ],
  detailTemplate: "<div>Name: #: name #</div><div>Age: #: age #</div>"
});
var grid = $("#grid").data("kendoGrid");
grid.expandRow(".k-master-row:first");
</script>