Home » Structures » Structures_DataGrid » Bug #3859
Setting useHeader as false still renders the header
Details
| Submitted | 2005-03-17 10:12 UTC |
|---|---|
| From | daniel at assertio dot es |
| Assigned | asnagy |
| Status | Closed |
| Package | Structures_DataGrid |
| PHP Version | 5.0.2 |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-03-17 10:12 UTC] daniel at assertio dot es
Description:
------------
In order to skip rendering the table header, using $dg->renderer->useHeader(false) still renders the header row but with empty cells  .
Reproduce code:
---------------
Patch: In renderer/HTMLTable.php, method _buildHTMLTableBody,
change:
Change line 417: $rowCnt = 0
To: $rowCnt = ($this->useHeader) ? 1 : 0;
Remove lines 420 and 457: $rowCnt++;
Add line 464: $rowCnt++;
[2005-03-18 05:17 UTC] daniel at assertio dot es
I made a mistake, line 417 should read
$rowCnt = ($this->header) ? 1 : 0;