created a new column in datastore based on existing columns
$new_delay_count = $this->dataStore("delay_count")->process(new CalculatedColumn(array(
"ratio"=>array(
"exp"=>"{delay_count}*100/{all_count}",
"type"=>"number",
"decimals"=>2
))));;?>
Setting properties to that column
"ratio"=>array(
"label" => "النسبة",
"cssStyle"=> "width:100px",
"type"=>"number",
"decimals"=>2, //eg $value=20.1234556789
"formatValue"=>function($value)
{
$color = $value>20?"#e83e8c":"#000000";
return "<span style='color:$color'>".$value."</span>";
} ,
),
I have tried "type"=>"number", "decimals"=>2, in column property, during column creation , also both together as shown here. tried $value/10000000=it is giving exponent values.