New to Kendo UI for jQueryStart a free 30-day trial

Selectable

configuration

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.

selectable

Boolean|String

Default: false

<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>
<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>
Not finding the help you need?
Contact Support