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
|
This page will automatically be redirected to the sign-in page in 10 seconds.