columnMenu.columns Boolean (default: true)

If set to true, the column menu allows the user to select (show and hide) TreeList columns. By default, the column menu allows column selection.

Example - disabling the showing or hiding of the columns by using the column menu

<div id="treeList"></div>
<script>
  $("#treeList").kendoTreeList({
    columns: [
      { field: "name" },
      { field: "age" }
    ],
    columnMenu: {
      columns: false
    },
    sortable: true,
    dataSource: {
      data: [
        { 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: 14 }
      ]
    }
  });
</script>
In this article
Not finding the help you need? Improve this article