Tell dataTable() which table rows to parse?!
Tell dataTable() which table rows to parse?!
Hi,
I'm looking for a mechanism (at intialization or rendering time) to tell dataTable object which of the html table tr rows to take into account on rendering. Basically one dataTable logical row will map to a couple of rows. Or at least to map only to some of them, the others being skipped but controlled later manually: to collapse/expand or maybe init any other inner table, etc.
Possible something such as fnRowCallback or fnDrawCallback or a css class that will tell dataTable to parse only the flagged rows.
Is there such an easy way of achieving this?
I'm looking for a mechanism (at intialization or rendering time) to tell dataTable object which of the html table tr rows to take into account on rendering. Basically one dataTable logical row will map to a couple of rows. Or at least to map only to some of them, the others being skipped but controlled later manually: to collapse/expand or maybe init any other inner table, etc.
Possible something such as fnRowCallback or fnDrawCallback or a css class that will tell dataTable to parse only the flagged rows.
Is there such an easy way of achieving this?
This discussion has been closed.
Replies
I am not sure, but I suspect that is not possible to let DataTables just skip some rows of a HTML table while rendering, because this would mess up all kinds of internal variables. For example, the variable 'number of rows in datatable': Is this all rows, or only the rows being rendered?
Allan
But then the table row should include another table that will have the fancy layout I need.
Thx