Change cell background color with server side processing enabled

Change cell background color with server side processing enabled

niemand23niemand23 Posts: 4Questions: 2Answers: 0

Hi there,

After enabling server side processing, I am unable to change the background color of some cells based on their values. This is what I am using for changing the background color for cell 17 for example if it has the value 'OK' without any result:

"rowCallback": function( row, data, index ) {
if ( data[16] == "OK" ) {
  $("td:eq(16), row").css("background-color","green");

}

Do you have any ideas why this is not working anymore?

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    $("td:eq(16), row")

    I think you mean:

    $("td:eq(16)", row)
    

    !

    Allan

This discussion has been closed.