Datatables to nested HTML Tables
Datatables to nested HTML Tables
maverickreclci
Posts: 1Questions: 0Answers: 0
I was working on a problem where a tool is generating a html dynamically and to make it a bit interactive i thought of using dataTables magic. With a good start , i got stuck in a problem -
The html is having nested tables (tables within tables) and my question is - Is there any way to subsume datatables on my html. I tried but it is giving an error - nCell is undefined .
What can i do about it ?
Sample html -
[code]
$(document).ready(function() { $('#table_id,#id2').dataTable();} );
AAA
gfff
fgfgf
Row 1 Data 1
Row 1 Data 2
etc
Row 2 Data 1
Row 2 Data 2
etc
sfdsfsdf
ffdfs
dzsfdfs
ddddddd
[/code]
The html is having nested tables (tables within tables) and my question is - Is there any way to subsume datatables on my html. I tried but it is giving an error - nCell is undefined .
What can i do about it ?
Sample html -
[code]
$(document).ready(function() { $('#table_id,#id2').dataTable();} );
AAA
gfff
fgfgf
Row 1 Data 1
Row 1 Data 2
etc
Row 2 Data 1
Row 2 Data 2
etc
sfdsfsdf
ffdfs
dzsfdfs
ddddddd
[/code]
This discussion has been closed.
Replies
I want to include my nested tables within the HTML rather than populate them on the fly.
http://datatables.net/forums/discussion/11354/expanding-rows-pulling-data-purely-from-tables/p1
Modified and running:
http://live.datatables.net/iledox/edit#javascript,html
Allan