fnOpen on 3-level detail rows
fnOpen on 3-level detail rows
asifhussain
Posts: 7Questions: 0Answers: 0
Hi,
I am trying to achieve something like this http://datatables.net/forums/discussion/284/row-parent-childrens-tree/p1
The following is a part of my code,
$('#example tbody tr').each( function () {
oTable.fnOpen( this, fnFormatDetails(this.id), 'details' );
} );
cTable = getChildTable();
$('#example #example2 tbody tr').each( function (index) {
cTable.fnOpen( this, fnJobTitleDetails(this.id), 'details' );
} );
It displays row 1, its children 1.1, 1.2, 1.3.. and its children 1.1.1, 1.1.2,1.1.3.. perfectly fine but from row 2 onwards, fnOpen fails to display 2.1.1, 2.1.2 etc
I am trying to achieve something like this http://datatables.net/forums/discussion/284/row-parent-childrens-tree/p1
The following is a part of my code,
$('#example tbody tr').each( function () {
oTable.fnOpen( this, fnFormatDetails(this.id), 'details' );
} );
cTable = getChildTable();
$('#example #example2 tbody tr').each( function (index) {
cTable.fnOpen( this, fnJobTitleDetails(this.id), 'details' );
} );
It displays row 1, its children 1.1, 1.2, 1.3.. and its children 1.1.1, 1.1.2,1.1.3.. perfectly fine but from row 2 onwards, fnOpen fails to display 2.1.1, 2.1.2 etc
This discussion has been closed.
Replies