colvisGroup with toggle (Show/Hidde a group of columns)

colvisGroup with toggle (Show/Hidde a group of columns)

rosariclarosaricla Posts: 5Questions: 3Answers: 0
edited December 2018 in Free community support

I would like to use the colvisGroup button but toggle the columns rather than show/hide them (For example I want to show columns 4,5,6 when clicked . Then if it is clicked again it will hide 4,5,6). I do not want two buttons: one for show and other for hide, I would like one button to do both.

I do not want to use columnsToggle button as expand the columns and creates one button for each column and I want ONE button to toggle a group of columns at the same time.

For example, look this fiddle in stead of two buttons to show/hide the three columns I would like one button.

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @rosaricla ,

    Those buttons won't do that - they don't toggle as you said. The best way to go is to create a custom button, as shown in this example here. Then, you can code it as you wish.

    Cheers,

    Colin

This discussion has been closed.