columnMenu.sortable Boolean
(default: true)
If set to true
, the column menu will allow the user to sort the TreeList by the column field. By default, if sorting is enabled through sortable, the column menu allows the user to sort the data.
If this option is set to
false
, the user will still be able to sort by clicking the column header cell.
Example - disabling the sorting of the column menu
<div id="treeList"></div>
<script>
$("#treeList").kendoTreeList({
columns: [
{ field: "name" },
{ field: "age" }
],
sortable: true,
columnMenu: {
sortable: false
},
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>