Colvis - Too many columns to exclude

Colvis - Too many columns to exclude

HereHere Posts: 3Questions: 1Answers: 0

I have bunch of columns, therefore I have multiple checkbox under Colvis button Show / hide columns. But how to limit these options to Column_x and Column_y?

http://i.stack.imgur.com/Q5WtM.png

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    There is an exclude option in ColVis which you can use to exclude the columns you don't want.

    Allan

  • HereHere Posts: 3Questions: 1Answers: 0

    I know, but I want only column_x and column_y to be under 'show / hide columns', because there will be min. 100 columns

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    Answer ✓

    Unfortunately at the moment there is no include option. I'm working on a replacement for ColVis at the moment which will likely include such an option.

    Allan

  • HereHere Posts: 3Questions: 1Answers: 0

    I'm trying to hide these columns by using slice, but I don't know if I'm using correct class.

    $('.ColVis_collection li').slice(2).hide();
    
  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    Looks okay to me. You will need to run that when the sub-menu is added to the document though. You might need to add a little hack into ColVis to know when that is.

    Allan

This discussion has been closed.