Bug in DT when trying to change rowGrouping on the fly?
Bug in DT when trying to change rowGrouping on the fly?
Hi
I've been trying to figure out how to change rowGrouping after setting it in $(document).ready.
Setting grouping for the first time goes OK:
[code]
oTable.rowGrouping({iGroupingColumnIndex: 1});
[/code]
But when trying to change grouping, I get an error in dataTables.js
[quote]TypeError: a.aoData[b] is undefined[/quote]
[code]
$('#example thead th').click(function() {
oTable.rowGrouping({iGroupingColumnIndex: 2});
});
[/code]
I use dataTables 1.9.2
Thanks in advance for any suggestions or comments!
I've been trying to figure out how to change rowGrouping after setting it in $(document).ready.
Setting grouping for the first time goes OK:
[code]
oTable.rowGrouping({iGroupingColumnIndex: 1});
[/code]
But when trying to change grouping, I get an error in dataTables.js
[quote]TypeError: a.aoData[b] is undefined[/quote]
[code]
$('#example thead th').click(function() {
oTable.rowGrouping({iGroupingColumnIndex: 2});
});
[/code]
I use dataTables 1.9.2
Thanks in advance for any suggestions or comments!
This discussion has been closed.
Replies
Allan