Color of Row selection when background of cell is changed
Color of Row selection when background of cell is changed
ArgaWoW
Posts: 14Questions: 5Answers: 0
I have changed the backround of some cells with differnt colors based on some conditions.
The problem is, the row selection color not working on this cells.
I have add an important style in the html-file wíthout success.
Attached the link to a fiddle
Thank you for helping me
This question has accepted answers - jump to:
This discussion has been closed.
Answers
To be clear, do you want the whole line to be the same colour when the selection is made, regardless of the colour of any of the cells?
Colin
Hi Colin,
thank you for your answer
yes, that's exactly what I want to have.
The complete row should have the color;
background-color: #255
Andreas
Hi Andreas,
You were using
table.dataTable tbody tr.selected
as the selector for the row background, but then assigning a background colour to specific cells. That would result in the row background being behind the cell.Use:
as the selector. http://jsfiddle.net/CloudTables/kg7phoz0/1/
Allan
Hi Allan,
thank you. That works great.
Do you have also a solution for the hover seletion of the row. The colored cells not get highlighted on hover?
Andreas
The same principle would apply there - see here:
http://jsfiddle.net/qa90w2vr/
Colin