column visible not working on responsive Jquery datatable
column visible not working on responsive Jquery datatable

I have created a responsive datatable using the responsive plugin. I want to hide and show a column in the table based on certain conditions. If my table was not a responsive table I could have done it pretty easily by doing:
mytable.column(4).visible(false);
However, since my table is responsive when I do this it just collapses it and a user can still see it
Is there a way to hide columns in a responsive table dynamically?
This discussion has been closed.
Answers
A column set invisible with
column().visible()
wouldn't be visible in the Responsive area - so something must be going wrong.We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin