unpinRows

Unpins one or more previously pinned data rows.

Parameters

targets Array|jQuery|Element|kendo.data.ObservableObject

A single row or an array of rows to unpin. Each item can be a jQuery object, DOM element, or data item.

Example - unpin a row

<button id="unpin">Unpin first row</button>
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { field: "age" }
  ],
  dataSource: {
    data: [
      { id: 1, name: "Jane Doe", age: 30 },
      { id: 2, name: "John Doe", age: 33 },
      { id: 3, name: "Jim Doe", age: 25 }
    ],
    schema: {
      model: { id: "id" }
    }
  },
  pinnable: {
    top: [1]
  }
});
$("#unpin").click(function() {
  var grid = $("#grid").data("kendoGrid");
  var firstItem = grid.dataSource.at(0);
  grid.unpinRows(firstItem);
});
</script>
In this article
unpinRows
Not finding the help you need?
Contact Support