Can the FixedColumns plugin be used with row details?
Can the FixedColumns plugin be used with row details?
I have a DataTable which shows extra row details as per this example and this works as intended. I added the FixedColumns plugin and froze the first two columns. This also works as intended except that the details row now no longer shows.
By debugging in the Chrome console I found the reason why. I initialise the table with
$('#my-table-id').DataTable({the options});
and can see #my-table-id in the DOM as follows
div#my-table-id_wrapper > div > div > table#my-table-id > tbody > etc
when I add the fixedColumns
option in the table initialisation the DOM becomes
div#my-table-id_wrapper > div > div > div > div > table > tbody > etc
So the id has been stripped from the table and therefore events don't get attached to it. Is this a bug in the plugin?
This question has an accepted answers - jump to answer
Answers
No sorry. As the compatibility page notes these two features are not currently compatible.
Allan
Thanks, I hadn't seen that page before, I'll bookmark it.