How to hide columns in the first level of complex headers

How to hide columns in the first level of complex headers

jontxojontxo Posts: 12Questions: 2Answers: 0

Hello

I am trying to hide a column of the upper level of a header of two levels using the api function
this.api().column( '.steps' ).visible( false );
in the initComplete function
and it is not hiding the column. Is it possible to do it ?

I have created the following js fiddle to show an example: https://jsfiddle.net/jontxo/xnacL9d3/34/

Regards

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    The issue is because the class steps isn't on a column as such, it's on the colspan. If you put the steps class on the columns within that group, then it works - see here.

    Colin

  • jontxojontxo Posts: 12Questions: 2Answers: 0

    thanks

This discussion has been closed.