columnMenu Boolean|Object (default: false)

If set to true the treelist will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.

Can be set to a JavaScript object which represents the column menu configuration.

Example - enable the column menu

<div id="treeList"></div>
        columns: [
            { 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 }
In this article
Not finding the help you need? Improve this article