columns.menu Boolean
If set to true
, the TreeList will display the column in the column menu. By default, the column menu includes all data-bound columns, that is, the ones with a set field option.
Example - hiding a column from the column menu
<div id="treeList"></div>
<script>
$("#treeList").kendoTreeList({
columns: [
{ field: "id", menu: false },
{ field: "name" },
{ field: "age" }
],
columnMenu: true,
dataSource: {
data: [
{ id: 1, parentId: null, name: "Jane Doe", age: 22 },
{ id: 2, parentId: 1, name: "John Doe", age: 24 }
]
}
});
</script>