tubadc said:
Hi,
Im using the below code to add some color to positive and negative number in my table:
{name:'margin', index:'margin', width:120, align:'right',sorttype:'number',summaryType:'sum',formatter:'number',
cellattr: function (rowId3, tv3, rawObject3, cm3, rdata3) {
return Number(tv3) >=0 ? 'style=”display:block;background-color:LightGreen”' :
'style=”display:block;background-color:Tomato”';}}
but it not working at the summary sum… only at the cell itself…. how can i fix it to work in the summary sum too?
Tks
please help….