Pagination on specific row class or data element name - is this possible?
Pagination on specific row class or data element name - is this possible?
Hello, and apologies if this was asked before. I've been searching for days but can't find the answer.
My use case is for a table that shows categories (which can have descendants up to n-level). The idea is for Datatables to paginate ONLY on top-level categories. Those categories have a specific class and html5 data tag. i.e. class="toplevel", data-top-id.
Is there a way to paginate on rows of a specific class or data element name?
Please feel free to point me to the correct documentation, and thank you in advance for the help!
This discussion has been closed.
Replies
Hi,
No - I'm sorry to say that this is not possible in DataTables at the moment. N-level hierarchy (descendants) is not supported and paging will always occur at the number of rows that has been specified only.
Allan