Hiding columns when show/hide child rows

Hiding columns when show/hide child rows

adzadz Posts: 7Questions: 5Answers: 0

I have added child rows to every row in my table for showing some detailed information about the parent rows. The column structure for the child rows is the exact same as the parent row. I pass data to the row.child() as an array of rows. The main table has certain columns that I show/hide using a button that toggles the column. To toggle the column I have used datatable's visible() function. The problem is: the columns in the parent row toggle correctly by using the visible() function. But the respective columns in the child row remain unaffected. Is there a way to show/hide the columns in the child rows and parent row together?

Thanks!

This discussion has been closed.