Category / Section
How to include/exclude columns from the column visibility list in the column menu
1 min read
In TreeGrid, by using the showInColumnChooser property, it is possible to either exclude or to include specific columns in column visibility list.
The below code explains how to include and exclude the columns from column menu
<div id="TreeGridContainer”></div> <script type="text/javascript"> $(function () { $("#TreeGridContainer").ejTreeGrid({ showColumnChooser: true, showColumnOptions: true, columns: [ { field: "taskID", headerText: "Task Id",showInColumnChooser:false }, { field: "taskName", headerText: "Task Name",showInColumnChooser:true }, //... ], }) }); </script>
Please refer the below demo sample to include or exclude columns from column menu’s visibility list