how to define a custom checkbox id in cgridview?
eg: How do i add the shift_in_date column value to my checkbox id like say CB_2012-09-26,CB_2012-09-27 and so on?
<div class="row">
<?php
$dataProvider=new CArrayDataProvider($rawData, array(
'id'=>'roster_create_shift_schedule_main_id',
'keyField'=>'roster_create_shift_schedule_main_id',
'pagination'=>array(
'pageSize'=>10,
),
));
?>
<?php
$shift_in_date= 'shift_in_date';
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'agent-schedule-grid',
'dataProvider'=>$dataProvider,
//'filter'=>$model,
'columns'=>array(
//'roster_create_shift_schedule_main_id'=>array('name'=>'CB', 'type'=>'raw', 'value'=>'CHtml::checkBox("roster_create_shift_schedule_main_id","",array("id"=>"chkPublish_".$data->shift_in_date))'),
array(
'class'=>'CCheckBoxColumn',
'selectableRows'=>2,
'id'=>'CB'.'shift_in_date',
),
'shift_in_date', 'in_time', 'shift_out_date', 'out_time',
),
));
?>
</div>