add coluns outer table in Datatables code example
Example 1: nested table jquery datatable
Plain text123456789101112131415$('#tbl_leader_board tbody').on('click', 'td.details-control', function () { var tr = $(this).closest('tr'); var row = table.row( tr ); if ( row.child.isShown() ) { // This row is already open - close it row.child.hide(); tr.removeClass('shown'); } else { // Open this row $( row.child() ).DataTable(); tr.addClass('shown'); } } );
Example 2: nested table jquery datatable
Plain text12$( row.child() ).DataTable();tr.addClass('shown');