I’m not sure how I should approach this, but if I wanted to collect values from some checkboxes on the page and then append them to the URL when the link in this CGrid is clicked how should I go about it?
$dataProvider->pagination->pageSize = 50;
$this->widget('zii.widgets.grid.CGridView', array(
"dataProvider"=>$dataProvider,
"selectableRows" => 1,
'ajaxUpdate'=>true,
'columns' => array(
'type',
'question'=>
array(
'type' => 'raw',
'value' => 'CHtml::ajaxLink(
CHtml::Encode($data->question),
Yii::app()->createUrl("graph/retrieveStatistics"),
array( // ajaxOptions
"update"=>"#ajaxResults",
"beforeSend" => "function( request )
{
}",
"data" => array("qcode"=>$data->qcode,"type"=>$data->type)
),
array( //htmlOptions
"href" => Yii::app()->createUrl("graph/retrieveStatistics" ),
)
)',
)
)
));
Thanks in advance.