Articles in this section
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

Sample

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied