How to change the Background-Color of a cell depending on its content (ssp)

How to change the Background-Color of a cell depending on its content (ssp)

roumeoroumeo Posts: 2Questions: 1Answers: 0

Hi Guys,

since yesterday i am using Server Side Processing in my DataTable. It works very fine for me, but now i need to change the background-color of a cell depending on it´s content. For example the value is greater then 1,39 and lower then 2,00, the background-color of the cell has to be red.
Without Server Side Processing, i have made this with setting the style by PHP.

Thx for Help and sorry for my bad english.....

Greetz roum

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Answer ✓

    Use the columns.createdCell option to add the required class to the cell.

    Allan

  • roumeoroumeo Posts: 2Questions: 1Answers: 0

    Thank you Allan! This worked for me very well!!!

    :) Greetz roum

This discussion has been closed.