is there some one could tell me why if i change the paging on CGridView the filter couldn’t run propertly. it couldn’t search data although on the first it’s work. so it’s work just once. thanks before. here code that i have made :
<?php
$diagnosaM->unsetAttributes();
if(isset($_GET['DiagnosaM'])){
$diagnosaM->attributes = $_GET['DiagnosaM'];
}
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'diagnosa1-v-grid',
'dataProvider'=>$diagnosaM->search(),
'filter'=>$diagnosaM,
'columns'=>array(
'diagnosa_kode',
'diagnosa_nama',
'diagnosa_namalainnya',
'diagnosa_katakunci',
'link'=>array(
'header'=>'',
'type'=>'raw',
'value'=>'CHtml::button("Pilih",array("onclick"=>"addDiagnosa(\'$data->diagnosa_id\',\'$data->diagnosa_kode\',\'$data->diagnosa_katakunci\',\'$data->diagnosa_nama\',\'$data->diagnosa_namalainnya\')","class"=>"button"));',
),
)
));?>