Creating a Nested Child Row effect through Nested DataTables

Creating a Nested Child Row effect through Nested DataTables

mj0sephmj0seph Posts: 3Questions: 1Answers: 0

Hi Everyone,

I understand that nested child rows are not currently supported, so I’m approximating this effect by embedding DataTables inside child rows as has been suggested here:

https://datatables.net/forums/discussion/comment/143058

I’d like to eventually go four levels deep while aligning child columns with the parent columns responsively. Alignment of columns works great when inserting a child rows just one level deep, as discussed here:

https://datatables.net/forums/discussion/comment/149817

But when inserting a DataTable in a child row, I run into issues with (1) parent-child column alignment and (2) the DataTable in the 2nd-level-child row inserts seemingly randomly in the parent table instead of below the target 1st-level-child row.

Here’s my code so far. Any thoughts on this are much appreciated!

http://live.datatables.net/hijedepe

Answers

  • colincolin Posts: 4,648Questions: 0Answers: 815

    Hi @mj0seph ,

    This thread here should help - it shows how you need to return a node to get the columns aligned.

    Could you give that a try and report back if no joy,

    Cheers,

    Colin

Sign In or Register to comment.