my filter doesn’t work
array(
'name' => 'status',
'filter'=> CHtml::activeDropDownList($model, 'status', array(Encashed=>"Encashed",Pending=>'Pending')),
'value'=>'($data->status==1)?("Encashed")<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/sad.gif' class='bbc_emoticon' alt=':(' />"Pending")',
),
Hi,
It is not working… that fine… what did u got from that code… attach some screenshot that will help forum people to solve issue soon
when i filter using my dropdownlist, whatever i choose from the dropdown all rows shows up
5610

jkofsky
(Jkofsky)
4
‘filter’=> CHtml::activeDropDownList($model, ‘status’, array(‘1’=>“Encashed”,‘0’=>‘Pending’)),
The first part of the selection array() is what is stored in the $model. The second part is what to display in the dropdown.