clearSelection

Depending on the current selection mode, clears the currently selected table rows or cells.

Example - clearing selection

<button id="clear">Clear Selection</button>
<div id="treeList"></div>
<script>
  $("#treeList").kendoTreeList({
    columns: [
      { field: "name" },
      { field: "age" }
    ],
    dataSource: [
      { id: 1, parentId: null, name: "Jane Doe", age: 22, expanded: true },
      { id: 2, parentId: 1, name: "John Doe", age: 24 },
      { id: 3, parentId: 1, name: "Jenny Doe", age: 3 }
    ],
    selectable: true
  });
  $("#clear").click(function(){
    var treeList = $("#treeList").data("kendoTreeList");
    treeList.clearSelection();
  });
</script>
In this article
Not finding the help you need? Improve this article