Multiple Tables and row Grouping
Multiple Tables and row Grouping
I am trying to apply row grouping to multiple tables, and im getting errors.
http://www.datatables.net/examples/basic_init/multiple_tables.html
Message: 'aoData[...]._aData' is null or not an object
Im basically taking the multiple_tables.html example, and applying the row grouping from here
http://www.datatables.net/examples/advanced_init/row_grouping.html
When i change #example to .dataTable in the fnDrawCallback, i get the _aData is null error.
Is there more that i have to do to get this to work?
The page im initially trying to create will have n number of tables, so I apply a class to each table.
Any help is greatly appreciated.
-Matthew
http://www.datatables.net/examples/basic_init/multiple_tables.html
Message: 'aoData[...]._aData' is null or not an object
Im basically taking the multiple_tables.html example, and applying the row grouping from here
http://www.datatables.net/examples/advanced_init/row_grouping.html
When i change #example to .dataTable in the fnDrawCallback, i get the _aData is null error.
Is there more that i have to do to get this to work?
The page im initially trying to create will have n number of tables, so I apply a class to each table.
Any help is greatly appreciated.
-Matthew
This discussion has been closed.
Replies
[code]
var nTrs = $('#example tbody tr');
[/code]
That is obviously a table specific selector. A suitable solution would be:
[code]
var nTrs = $('tbody tr', oSettings.nTable);
[/code]
That should just allow it to all work...
I'll update my example which that change.
Allan
Thanks alot for all your help!
-Matthew