Forum
11:08
16/08/2011
Hi,
i colorize my treegrid in the gridComplete function:
for (var i = 0; i < rowsToColor.length; i++) {
if(rowsToColor[i]%2 == 0)
{
$("#" + rowsToColor[i]).find("td").css("background-color", "blue");
}
var ta= $("#" + rowsToColor[i]).find("td").eq(4).html();
if (ta== "OK") {
$("#" + rowsToColor[i]).find("td").eq(4).css("background-color", "green");
}
var status = $("#" + rowsToColor[i]).find("td").eq(2).html();
if (status == "NOK") {
$("#" + rowsToColor[i]).find("td").eq(2).css("background-color", "red");
}
}
}
the rowsToColor-Array is filled in
rowsToColor[rowsToColor.length] = options.rowId;
return cellValue;
}
which is called by a formatter
That works!
But after i change a value, the color stay the same, because i don't know, which function is called after a Cell-Change.
I tried it with
alert("huhu");
}
but that event doesn't fire.
Does somebody have any idea?
Thank You.
Most Users Ever Online: 715
Currently Online:
39 Guest(s)
Currently Browsing this Page:
1 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