0

I have a div for an AngularGrid row which I want to have its background-color changed, it should change on a click event of a callback function for its cellRendered property:

function hightlightedRow(params) {  

            if (params.value) {
               $("div[row='" + params.rowIndex + "']").css('background- color','gray');                    
            } 
 }

The code doesn't work for the dynamic rowIndex, but if I hardcode an index like this on this callback event it works fine:

if (params.value) {
    $("div[row='3']").css('background-color','gray');
}

Can you please tell me how can I change the css style of each row called by this function dynamically?. Thanks.

CoderRoller
  • 1,239
  • 3
  • 22
  • 39

0 Answers0