Target specific child when using row().child.hide() / show()

Target specific child when using row().child.hide() / show()

filurfilur Posts: 1Questions: 1Answers: 0
edited June 2015 in Free community support

I have a row with more than 1 child.

When using row().child, it always selects all of the children. Thus, I'm unable to show one, while keeping the rest hidden, and vice versa.

A lot of examples on the net are recreating the children when showing them using row().child( data [, className ] ), which I'm not interested in - I just want to toggle visibility.

I have also tried adding all the children using row.child([data1, data2]); and show them using jQuery's show(). But since they're only added to the DOM once datatable's child.show() is executed, this won't work.

How do I target a subset of children to use child.hide() and child.show() on?

This discussion has been closed.