Hi have two question:
1) change the text color based on value
0-50 red
51-81 blue
82-100 green
How can i do? I've used conditional formatting but i can't figure it out
2) change value based on db
Ex. the db give me the value "F" but in the grid i want "F" is trasformed into "First"
Thanks
#1 Refer this demo code:
http://pastebin.com/HevurRGR
#2
I) Refer on_data_display event in demos/editing/custom-events.php
II) For extended conditional data, you can also have callback function, that will allow you to display based on row data. For e.g.
$col["on_data_display"] = array("display_keyword","");
function display_keyword($data)
{
$kw = $data["keyword_name"];
$numKeywords = count(explode("n",$pass));
if ($numKeywords > 3)
return $numKeywords." Keywords";
else
{
$pass = str_replace("+"," ",$pass);
return $pass;
}
}