QDataGrid::OverrideRowStyle styles are not rendered
Fri, 09/16/2011 - 12:16
Hi,
Whenever I need to customize a datagrid row, using
<?php
$dtg = new QDataGrid();
$dtg->OverrideRowStyle($someRow,$someStyle);
?>the styles defined in $someStyle are never rendered. The problem appears to be in file "includes/qcubed/_core/base_controls/QDataGridBase.class.php".
Line 48:
<?php
$strToReturn = sprintf('<tr id="%s" %s>%s</tr>', $this->strControlId, $this->GetAttributes(), $strColumnsHtml);
?>should be
<?php
$strToReturn = sprintf('<tr id="%s" %s style="%s">%s</tr>', $this->strControlId, $this->GetAttributes(), $this->GetStyleAttributes(), $strColumnsHtml);
?>I checked both 1.1 and 2.0 branches. Can someone please confirm this, so I can create a patch?
Thanks.
