Display array with related models in CGridView cell

Hello.

I need to display an array with related models data in CGridView row with filter.

I use custom function to aggregate data to output:

view:




$this->widget('bootstrap.widgets.BootGridView', array(

    'id'=>'my-table',

    'type'=>'striped bordered condensed',

    'filter'=>$model,

    'dataProvider'=>$model->search(),

    'columns'=>array(

         array(

            'type'=>'html',

            'value' => array($this,'renderProjectCompanyEmployers'),

        ),

    ),

));



controller:




protected function renderProjectCompanyEmployers($data, $row){

        $ret = '';

        foreach($data->employers as $employee){

            $ret .= $employee->val1 . ' (' . $employee->val2 . ')' . '<br/>';

        }

        return $ret;

    }



Can i use filter on this column?

read this