Open/close row DataTables 1.9 with FixedColumns

Open/close row DataTables 1.9 with FixedColumns

Adrian2007Adrian2007 Posts: 19Questions: 7Answers: 0

Hello,

I would like to ask how to use the example "•Show and hide details about a particular record" (http://legacy.datatables.net/release-datatables/examples/server_side/row_details.html) for a DataTables 1.9 with FixedColumns (the first column is fixed).

The problem I have is that $('#example tbody td img').live( 'click', function () {.... doesn't work because the open/close image is not in the td>tbody>example but in the cloned table (the one with "DTFC_Cloned" class) (the first column is fixed).
So I am not able to use the "td" of the fixed column because it is in the DTFC_Cloned table.

Thank you,
A

Answers

  • allanallan Posts: 63,893Questions: 1Answers: 10,531 Site admin

    Hi,

    There is no ability to do that with even 1.10 (1.9 is no longer supported btw). The compatibility chart shows that FixedColumns cannot currently be used while child rows.

    Allan

  • Adrian2007Adrian2007 Posts: 19Questions: 7Answers: 0

    Actually I was wondering how could it be possible with a fixed column to insert a new row.

    Thank you, Allan!

  • allanallan Posts: 63,893Questions: 1Answers: 10,531 Site admin

    I don't know to be honest! And that's the reason why FixedColumns and the child rows are not currently compatible. The fixed columns float on top of the main table and typically have the width of only a single column. While the child row will typically span the width of the whole table. The two are incompatible.

    Allan

This discussion has been closed.