Hide some column by default and re-display when required

Hide some column by default and re-display when required

soma1204soma1204 Posts: 34Questions: 6Answers: 0
edited February 2022 in ColVis

Hi,

I have table with select filter, sorting, search and paging. My requirement is to hide certain columns by default and re-display when required using colvs.

Tried with following logic, it hides columns, but corresponding select filtered values exist. this is one issue,
Another issue is select filter dropdown disabled when i re-display hidden columns.

Could you please help us.

 "columnDefs": [
                    {
                        "targets": [2,3,6,7,13],
                        "visible": false
                        
                    }
                ]

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

Sign In or Register to comment.