Column background color based on sorted group values?

Column background color based on sorted group values?

EricEric Posts: 24Questions: 0Answers: 0
edited September 2011 in General
Currently I'm using the alternate row highlighting. When a column is sorted, it apples the default DataTables column background color.

Is there a way to have this have that column highlight based on the sorted (grouped) values?

For example, let's say I have a status column, if a user were to sort on statuses, instead of the entire column being highlighted every other row, it would highlight every other different value.

Status (sorted ascending)
------
Completed (color 1)
Completed (color 1)
Completed (color 1)
Not Started (color 2)
Not Started (color 2)
Not Started (color 2)
Started (color 1)
Started (color 1)
Started (color 1)


Thanks for any input.
This discussion has been closed.