Pagination: counting the grouping rows in pagination, not total rows

Pagination: counting the grouping rows in pagination, not total rows

dylanmacdylanmac Posts: 49Questions: 7Answers: 1

I have a table that I am grouping according to this example:
https://datatables.net/examples/advanced_init/row_grouping.html

How do I adjust the pagination so that it only counts the group headers per page as opposed to total rows. I am wondering whether there is a way to do it using the datatables api.

Thanks,

Dylan

Replies

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Hi Dylan,

    There is no option for that I'm afraid. The row grouping example effectively modified the standard DOM that DataTables draws, inserting the grouping rows. DataTables itself isn't "aware" of that.

    Allan

This discussion has been closed.