Issue #181 new

filterHtmlOptions missing in TbDataColumn.php

Anonymous created an issue

TbGridView and TbDataColumn respectively ignore filterHtmlOptions for filter cells unfortunately.

In TbDataColumn.php it should be

public function renderFilterCell()
{
    echo CHtml::openTag('td',$this->filterHtmlOptions);
    echo '<div class="filter-container">';
    $this->renderFilterCellContent();
    echo '</div>';
    echo '</td>';
}

instead of

public function renderFilterCell()
{
    echo '<td><div class="filter-container">';
    $this->renderFilterCellContent();
    echo '</div></td>';
}

Thanks.

Comments (3)

  1. Nathan Cramer

    I'm also running into this issue and the fix is quite simple.

    Accurately described in the above, though there's no need to modify the html closing tags into separate lines.

  2. Log in to comment