Liooo / jquery-datatables-row-grouping

Automatically exported from code.google.com/p/jquery-datatables-row-grouping
0 stars 0 forks source link

Collapsible/Expandable Grouping enhancements (rowcount per group + expand/collapse all) #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using Collapsible/Expandable Grouping, with all groups collapsed in the 
initial view. 

I would really like to add the rowcount (number of rows per group) in the group 
header. This would be an enhancement which would make the row grouping more 
informative.  It lets the user know what to expect when clicking to expand the 
group.

Another very useful enhancement would be expand/collapse all buttons.

Thank you for this very useful plugin and all of your hard work!

Original issue reported on code.google.com by laila.br...@gmail.com on 2 May 2012 at 5:20

GoogleCodeExporter commented 8 years ago
Hi,

In the latest version of plugin there is a function that allows you to format 
text that will be placed in the group heading:

fnGroupLabelFormat: function(label) { return " "+ label + " (primary group)"; }

This function receives a name of the group so maybe you can create some jquery 
statement that counts tows with that content in the table?

Regards,
Jovan

Original comment by joc...@gmail.com on 13 Jul 2012 at 3:45

GoogleCodeExporter commented 8 years ago

Original comment by joc...@gmail.com on 23 Jul 2012 at 4:52

GoogleCodeExporter commented 8 years ago
Hi, 

You can see example with row count in 
http://jquery-datatables-row-grouping.googlecode.com/svn/trunk/customization.htm
l (you will ned the latest version of plugin.

Regards,
Jovan

Original comment by joc...@gmail.com on 25 Jul 2012 at 7:05