RowGroup generated rows included in displayLength setting

RowGroup generated rows included in displayLength setting

ko5winko5win Posts: 1Questions: 1Answers: 0

Related question : https://datatables.net/forums/discussion/15947/paging-with-row-grouping

I am using the official RowGroup extension and it generates the extra rows perfectly. However, I want to set a hard limit of 10 rows to the displayed row count but now it displays the number of rows plus the rows generated from the extension. Is there any suggestions on how to display only the number of rows set by displayLength, including the rows generated from RowGroup?

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    There's not an option for that, I'm afraid. You may be able to do something in drawCallback - check for the total number of rows in the table, and if above 10, dynamically adjust the page length with pageLength. I haven't tried that, but it may work.

    Colin

This discussion has been closed.