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

PersistSelection

configuration

Sets a value indicating whether the selection will be persisted when sorting, paging, filtering and etc are performed.

Note: Selection persistence works only for row selection.

In order for selection persistence to work correctly, you need to define an ID field in schema.model.

Selection persistence does not work for new items when the Grid DataSource is in offline mode. In offline mode, newly added items do not have IDs, which are required for selection persistence to work.

Default: false

<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: 30 },
      { id: 4, name: "Jack Doe", age: 33}
    ],
    schema: {
      model: { id: "id" }
    }
  },
  pageable: {
    pageSize: 2
  },
  selectable: "multiple, row",
  persistSelection: true
});
</script>
Not finding the help you need?
Contact Support