Multilevel expansion
Multilevel expansion
venkateshdorai
Posts: 1Questions: 0Answers: 0
Hi,
I am following showing / hiding rows example to show rows on expansion which should merge with parent table and also as expand button on them too. I am not able to get rows on expansion of child rows. I thought the below code should work. but it works only one level. Thanks in advance. Please help.
function fnExpand(oTable, node) {
var nTr = node.parentNode.parentNode;
if (node.src.match('expand')) {
/* Open this row */
node.src = contextPath + "/resources/images/collapse.gif";
oTable.fnOpen(nTr, $("#table_details_" + node.id).html(), 'child_data');
return true;
} else {
return false;
}
}
I am following showing / hiding rows example to show rows on expansion which should merge with parent table and also as expand button on them too. I am not able to get rows on expansion of child rows. I thought the below code should work. but it works only one level. Thanks in advance. Please help.
function fnExpand(oTable, node) {
var nTr = node.parentNode.parentNode;
if (node.src.match('expand')) {
/* Open this row */
node.src = contextPath + "/resources/images/collapse.gif";
oTable.fnOpen(nTr, $("#table_details_" + node.id).html(), 'child_data');
return true;
} else {
return false;
}
}
This discussion has been closed.