Unfortunately with row grouping this does not work properly. Whilst the column is added fine, the colspan of the grouped rows is not increased, and hence those rows have one less column in. This mucks up the formatting. The colspan of grouped rows should get incremented when a column is made visible, and decremented when a column is hidden.
]]>The linked page shows a table using shortcode
[table id=3 datatables_counter_column=true datatables_rowgrouping={iGroupingColumnIndex:1} /]
The table has a blank first column for the Counter, and the Row Grouping column is the second column. The grouping has worked fine, but the counter column is blank. If I use just
[table id=3 datatables_counter_column=true /]
then the counter column does work ok.
Any idea how I can get these to work together?
]]>By default row grouping groups by the first column, and orders by it as well. According to https://code.google.com/archive/p/jquery-datatables-row-grouping/wikis/Overview.wiki (and the example download “JQuery DataTable Row Grouping – Ordering groups by different column”) it should be possible to specify a different column for grouping, and ordering.
I’ve tried various options of sending parameters for this in Custom Commands, but I think they are always interpreted (and ignored) by the datatable itself, and not the row grouping extension.
{“iGroupingColumnIndex”: 0, “sGroupingColumnSortDirection”: “asc”, “iGroupingOrderByColumnIndex”: 1}
]]>I’m building a table using both plugin extensions Row Grouping and Responsive Tables and I see an issue. The colspan for the Row Grouping is getting shortened by one column.
Instead of colspan=”5″ it’s only at 4 in the code.
Here’s the shortcode I’m using:
[table id=1 column_widths=”0%|50%|10%|20%|30%” datatables_rowgrouping=true responsive=”collapse” responsive_breakpoint=”all” /]
And here’s a link to the table:
https://wbunions.kevllar.com/itu/
Any idea what’s happening and how to fix it? When I disable the responsive plugin the Row Grouping goes all the way across so the grey background doesn’t leave the last column empty so I know it’s the responsive plugin. Thanks man.
Kevin
https://www.ads-software.com/plugins/tablepress/
]]>Is it better to use the Ajax auto-refresh or the table update? Is there a use case for each?
With regard to poorpigs.de and the tables you are using, is the table here built with TablePress? I am looking to use row/detail expansion as well.
If I continue from that table and click on one of the years I see the detail of stats in another table as in here. If this is also implemented with TablePress, did you do it via data or formulas?
https://www.ads-software.com/plugins/tablepress/
]]>