QDataGrid::OverrideRowStyle styles are not rendered

Login or register to post comments
No replies
Offline
Joined: 08/12/2009

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.