I would like to change the row background color before rendering the row when one of its columns assumes a certain value.
In the documentation exists the example below:
<?php
$grid = new KoolGrid("grid");
class MyGridEventHandler extends GridEventHandler
{
function OnRowPreRender($row,$args)
{
$row->CssClass = "blueColor"; // Make the row in blue color.
}
}
$grid->EventHandler = new MyGridEventHandler();
?>
I did not find how to get access to columns values using the GridRow class, though.
Best regards.