Hey there, Awesome Customers!

Just a heads up: Our team will be out of the office on the 12th and 13th of September, but don’t worry—we'll be back in full swing on the 16th of September (since we don't operate on weekends anyway).

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we get back.

Thanks a bunch for your understanding and support!

Warm regards,

TMS

Okay
  Print

How to change the background color of Grouped Columns

Date: May 26, 2022


If you have created non-server-side tables (tables linked to Excel, CSV, Google Spreadsheet, XML, PHP, JSON, or MySQL query-based tables with "Server-side processing" turned off) you will be able to select a column that would be used for row grouping. More info about this feature can be found here.

In order to make those grouped rows stand out, you may want to add some background color to them. Conditional formatting and column colors won't work since the column is being converted into rows.

You can, however, add custom CSS in the “Customize” section above the table:

.wpDataTable td.group{
    background: red;
}
.wpDataTable td.group:hover{
    background: blue;
}

Also, you can apply this only to certain table IDs. For example:

.wpDataTableID-1 td.group{
    background: red;
}
.wpDataTableID-1 td.group:hover{
    background: blue;
}

Just make sure to change “1” with the ID of your table.

Hope this helps!