Hey,
i use a CDataColumn in my GriedView:
array(
'class' => 'CDataColumn',
'header' => 'Rating',
'filter' => CHtml::textField('Text'),
'value' => function($model){return $model->getValue();},
),
I want to use a Filter for this Column, so i set the filter value of the Column array. However there is a Textfield placed to search for this Column but the filter doesent work. I think i have to customize the "search" method of my model cause i use it as dataProvider for the Grid. But im a bit confused how i can do this.
My Controller action looks in this manner:
$provider = $model->search();
$this->render('my_view',array(
'dataProvider'=>$provider,
'model' => $model
));
Can someone give me an advice how i can make the CDataColumn workable for me?