Hi,
I would like to know how to prepopulate few of the checkboxes in the gridview.
// show data in grid view
$gridWidget = $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'app-grid',
'dataProvider'=>$dataProvider,
//'filter'=> $dataProvider,
'selectableRows' => 2,
'pager' => array ('header' => ''),
'columns'=>array(
//'id',
array(
'id'=>'topics',
'class'=>'CCheckBoxColumn',
),
'id'=>'id',
'name' => 'name',
) )
);
?>
echo CHtml::ajaxSubmitButton('Save',array('site/namecontroller','id'=>$id,'act'=>'doActive'), array('success'=>'reloadGrid'));