i want to add another grouping based on column index position 1
i want to add another grouping based on column index position 1
tj9999
Posts: 3Questions: 1Answers: 0
i want to add another grouping based on column index position 1 i.e Position(in jsfiddle), also i need to show the total of all subgroups that is column 2 groups that comes under column 1 group as a new row after the last subgroup of the main group. i dont know how to do that. my current code: https://jsfiddle.net/bvreamsg/1/
i need the output Table like this:
Answers
Looks like your code is based off this RowGroup example. There is now a RowGroup Extension to replace that example. It has builtin support for multi-level grouping. See this example for summing the groups. My suggestion is to use the RowGroup extension instead of writing your own multi-level grouping code.
Kevin
currently in my project the jquery version wont support rowgroup, the jquery cant be upgraded since it affect entirely
What version of jQuery are you using? DataTables and extensions should support jQuery 1.7.1 and newer.
Allan
im using 1.10.11, Datatables are supported but rowGroup supports only in 1.10.19 or later
I may be missing it but where is it documented that RowGroup supports Datatables 1.10.19 or later? I looked but didn't see any reference to this. It might exist as there is a lot of documentation on this site
I created an example with Datataables 1.10.11 and two columns for the grouped data.
https://live.datatables.net/kedixuli/1/edit
The example seems to work. @allan can confirm compatibility.
Kevin
I'm not sure about the 1.10.19 requirement either. The code says 1.10.8, but it is possible that is out of date...
I would encourage you to upgrade to the latest version of DataTables and the extensions. 1.10.19 was released in June 2018. It is very out of date and not supported any more.
Allan