Edit this page

persistSelection Boolean (default:false)

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.

Example - enables selection persistence

<div id="grid"></div>
  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
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article