New to Kendo UI for jQuery? Start a free 30-day trial

ExpandRow

methods

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

Parameters:rowString|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.

omitAnimationsBoolean

If set to false, the detail template is displayed without animations.

<div id="grid"></div>
<script>
let encode = kendo.htmlEncode;
$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { field: "age" }
  ],
  dataSource: [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 33 }
  ],
  detailTemplate: ({ name, age }) => `<div>Name: ${encode(name)}</div><div>Age: ${encode(age)}</div>`
});
var grid = $("#grid").data("kendoGrid");
grid.expandRow(".k-master-row:first");
</script>
Not finding the help you need?
Contact Support