Excluding columns from column visibilty dropdown

Excluding columns from column visibilty dropdown

SradesignSradesign Posts: 25Questions: 4Answers: 1

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:

Answers

  • SradesignSradesign Posts: 25Questions: 4Answers: 1
    Answer ✓

    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',

  • allanallan Posts: 64,083Questions: 1Answers: 10,567 Site admin

    The columns option of the colvis button type should be used to determine which columns will be included.

    Allan

  • SradesignSradesign Posts: 25Questions: 4Answers: 1

    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

  • allanallan Posts: 64,083Questions: 1Answers: 10,567 Site admin
    Answer ✓

    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

  • SradesignSradesign Posts: 25Questions: 4Answers: 1

    brilliant thanks

This discussion has been closed.