color support into a PlatinumGrid cell

PlatinumGrid - Full version
Post Reply
Posts: 4
Joined: Thu May 21, 2015 10:02 am

color support into a PlatinumGrid cell

Post by obutoi » Thu Jan 28, 2016 11:33 am

Hi Jon,

I am trying to display a color box into a PlatinumGrid cell when the field is a color (hex value).
I am using the OnRowData event with the following code:

function gridSettingsRowData($sender, $params)
$fields = &$params[ 1 ];
$fields[ 'Color' ] = '<div class="color-box" style="background-color: #'. $fields[ 'Color' ] . ';"></div>';

Do you support this? If yes, what am I doing wrong because I don't get anything into that cell?
If no, do you have any other suggestion? I tried also background-color on a div but also unsuccessfully...

Post Reply