selectable Boolean|String (default: false)

If set to true, the user will be able to select TreeList rows. By default, selection is disabled.

Can also be set to the following string values:

  • row - The user can select a single row.
  • cell - The user can select a single cell.
  • multiple, row - The user can select multiple rows.
  • multiple, cell - The user can select multiple cells.

Example - setting selectable as a Boolean

<div id="treeList"></div>
<script>
  $("#treeList").kendoTreeList({
    columns: [
      { field: "name" },
      { field: "age" }
    ],
    selectable: true,
    dataSource: [
      { id: 1, parentId: null, name: "Jane Doe", age: 22 },
      { id: 2, parentId: 1, name: "John Doe", age: 24 },
      { id: 3, parentId: 1, name: "Jenny Doe", age: 3 }
    ]
  });
</script>

Example - setting selectable as a string

<div id="treeList"></div>
<script>
  $("#treeList").kendoTreeList({
    columns: [
      { field: "name" },
      { field: "age" }
    ],
    selectable: "multiple, row",
    dataSource: [
      { id: 1, parentId: null, name: "Jane Doe", age: 22 },
      { id: 2, parentId: 1, name: "John Doe", age: 24 },
      { id: 3, parentId: 1, name: "Jenny Doe", age: 3 }
    ]
  });
</script>
In this article