Forum


21:57

07/08/2012

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
16:06

07/08/2012

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....
Most Users Ever Online: 715
Currently Online:
54 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66