Server side formatting is skipping rows


#1

function formatting($row){
$row->set_row_color($row->get_value(“reason”));

}

grid

the formatting is skipping rows


#2

Hello/

Please, try to add the following line in your grid initialization:

	mygrid.enableAlterCss("even","uneven");

and the following css:

.even{
 background-color: inherit !important;
}
.uneven{
 background-color: inherit !important;
 }


#3

thanks so much for the reply. I tried your code and now I get no colors.


#5

Please, also, try to use the:
$row->set_row_style("background:your_color");
instead of:
$row->set_row_color(your_color);


#6

it working now thanks