Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82121

Expand/Collapse all row details, next page

$
0
0
Thanks in advance.

I have been looking through the forums and really have not found an answer. This discussion (http://www.datatables.net/forums/discussion/10606/solved-how-to-add-button-to-expand-all-details/p1) came close, but did not solve my issue.

I want to have an expand (plus)/ collapse (minus) in the first column <th>. I have it working where it expands and collapse all the 'displayed' records. The problem starts when I go to the next page. No details are showing. So I thought, if I could check which icon was displaying, I would open or close detail when the pagination was triggered. But I have not found an example of how to do something like this when moving from one page to the next or backwards. I would also need to check when searches are being done. Basically, if the datatable changes, i need to check if the user had the expand all icon selected, or the - selected.

Any direction or hints?

Viewing all articles
Browse latest Browse all 82121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>