Bug in DT when trying to change rowGrouping on the fly?

Bug in DT when trying to change rowGrouping on the fly?

jsInterjsInter Posts: 2Questions: 0Answers: 0
edited September 2012 in Plug-ins
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!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited September 2012
    Sounds like an issue with the rowGrouping plug-in not being reconfigurable, rather than an issue with DataTables. I'd suggest you open an issue / enhancement request on the rowGrouping plug-in: http://code.google.com/p/jquery-datatables-row-grouping/issues/list

    Allan
  • jsInterjsInter Posts: 2Questions: 0Answers: 0
    I'll do! Thanks!
This discussion has been closed.