Alternate row color by date (group)

Alternate row color by date (group)

eddiesongeddiesong Posts: 2Questions: 1Answers: 0
edited July 2015 in Free community support

The base style is shading every other row: http://datatables.net/examples/styling/display.html. What I am trying to achieve is to have same color on the rows with the same value and then alternate based on groups.

For example, if I have a column named date and I want to color the whole table based on this column. There are 5 rows that date = "06/29/2015", following by 3 rows that date = "06/26/2015", following by 4 rows that date = "06/22/2015" (already sorted by date). Can I shade those rows that date = "06/29/2015" and "06/22/2015" and alternate like this.

Is there a clean or simple way to do it? Thanks for any advice.

Answers

This discussion has been closed.