Код: Выделить всё
"data"=>array("id"=>"$data->id", "status"=>"js:this.value"),
Код: Выделить всё
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'comment-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'comment',
'page_name',
'user_name',
'date',
array(
'name'=> 'is_new',
'filter'=> array('0'=>'Проверен','1'=>'Новый'),
'type' => 'raw',
'value' => 'CHtml::dropDownList("is_new", $data->is_new,
array("0"=>"Проверен","1"=>"Новый"),
array(
"ajax"=>array(
"type"=>"GET",
"url"=>"/Comment/updateStatus",
"data"=>array("id"=>"$data->id", "status"=>"js:this.value"),
)
)
);'
),
array(
'class'=>'CButtonColumn',
),
),
));