Hi,
I have CGridView set up like this
$this->widget('zii.widgets.grid.CGridView', array(
"dataProvider"=>$dataProvider,
"selectableRows" => 1,
'ajaxUpdate'=>true,
'columns' => array(
'question'=>
array(
'type' => 'raw',
'value' => 'CHtml::ajaxLink(
CHtml::Encode($data->question),
Yii::app()->createUrl("graph/retrieveStatistics"),
array( // ajaxOptions
"update"=>"#ajaxResults",
"type"=>"get",
"dataType"=>"json",
"beforeSend" => "js:function(xhr){
var appendedlUrl = this.url;
//alert(jQuery(\"#onPremise\").attr(\'checked\'));
if(jQuery(\"#onPremise\").attr(\'checked\') ==true){this.url = this.url+\'&onPremise=1\'};
if(jQuery(\"#offPremise\").attr(\'checked\') ==true){this.url = this.url+\'&offPremise=1\'};
if(jQuery(\"#wineTrade\").attr(\'checked\') ==true){this.url = this.url+\'&wineTrade=1\'};
xhr.open(this.type, this.url);
}",
"success" => "function( results )
{
//alert(results);
plotCharts(results);
}",
//data to populate the link parameters
"data" => array("qcode"=>$data->qcode,"type"=>$data->type)
),
array( //htmlOptions
"href" => Yii::app()->createUrl("graph/retrieveStatistics" ),
)
)',
)
)
…but when the link is clicked the row does not turn green as it does when I click the row. Is there an easy way to have the row change to selected when the link is clicked?
Thanks in advance.
Greg