Excluding columns from column visibilty dropdown
Excluding columns from column visibilty dropdown

How to Exclude columns from column visibility drop down?
I have several column that I want to exclude please give me an example of how we can do it?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
I did fixed my issue with include instead of exclude which again is not perfect but it works.
"columns": '0,1,2,3,4,5,6,9,10',
The
columns
option of thecolvis
button type should be used to determine which columns will be included.Allan
yeah but is there anyway to do exclude instead of include ? because for example if you have a long list of columns is not sufficient to put all the column in include but one or two
You could assign a class name to the columns you don't want to include and then do
columns: ':not(".dontInclude")
. There is no way to do an exclude with indexes though.Allan
brilliant thanks