How to get all rows-group?

How to get all rows-group?

DanielOltDanielOlt Posts: 2Questions: 1Answers: 0

Hi there,
I am using a global 'checkbox' to select all the rows including the rows generated by the 'row-group' extension.
The sentence:
var DataTable = $("#myTable").DataTable(...);
DataTable.rows().nodes().to$().addClass('selected') works perfectly since it selects all rows including rows that are not visible due to page.

The problem that I find is when selecting the 'row-groups' since with jquery only works for the elements of the first page not for the entire datatable.

$("#myTable .sel-items").prop('checked', true)

How can I get all the 'rowgroups' and assign them a class or modify their properties correctly?


  • allanallan Posts: 47,045Questions: 1Answers: 6,628 Site admin

    The grouping rows only exist on the current page. They are dynamically generated and inserted into the document after each draw on an "as needed" basis.

    I don't think there is a way to do what you are looking for, since the grouping rows for other pages simply don't exist.


Sign In or Register to comment.