Is there a simple API call to show child rows of hidden columns using responsive?
Is there a simple API call to show child rows of hidden columns using responsive?
![luiscab](https://secure.gravatar.com/avatar/d80fe040223d36e205ad73f60b4d457a/?default=https%3A%2F%2Fvanillicon.com%2Fd80fe040223d36e205ad73f60b4d457a_200.png&rating=g&size=120)
I have a table that is using the responsive plugin with different column priorities. I didn't want to add additional columns to the table that the user would need to click in order to show the hidden columns in the expanded row, and I have a custom button that I am placing inside of the last visible column of every row that the user should click to expand the row. Is there a simple API call that will open/close the child rows?
Using row().child.show() does not work in this case.
This question has an accepted answers - jump to answer
Answers
No there isn't I'm afraid. Although good point - there should be.
At the moment you would need to activate whatever trigger is being used to show / hide the child rows. For example you could make a click event show / hide on the whole parent row, and use
$(...).trigger('click')
to make that happen programmatically.Allan