1. Christoffer Niska
  2. yii-bootstrap
  3. Issues
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">';
    echo '</div>';
    echo '</td>';

instead of

public function renderFilterCell()
    echo '<td><div class="filter-container">';
    echo '</div></td>';


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