Change Cell color datatables
Change Cell color datatables
malik3012
Posts: 1Questions: 1Answers: 0
I have problem with set Background Color with condition. This my problem : https://stackoverflow.com/questions/74358089/change-background-color-jquery-datatables
I'm stuck for several days, thanks for your help
This discussion has been closed.
Answers
Its hard to say what the problem might be without seeing an example of your table data. I took your
rowCallback
example and adapted it bit to be used it in this test case:http://live.datatables.net/joxigega/1/edit
It works. Do some debugging to se what
data[2]
is. Maybe you are pointing to the wrong column. Or the column doesn't have numeric data, ie,1500
but maybe a monetary value that you need to parse. If you still need help then please post a link to a test case showing the issue.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin