is there anyway to create check all box on header (CGridView)?
i use this code to make checkbox on CGridView
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'viewlaporanpenjualan-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'summaryText'=>"",
'columns'=>array(
array(
'value'=>'CHtml::checkBox("cid[]",null,array("value"=>$data->id,"id"=>"cid_".$data->id))',
'type'=>'raw',
'htmlOptions'=>array('width'=>5),
),
'id',
'name',
),
thanks