Hello,
I have this in a column in a CGridView:
'anular' => array(
'label'=> ' Anular ', // text label of the button
'url'=>'Yii::app()->controller->createUrl("anularLiquidacion",array("id"=>$data->primaryKey))',
'click'=>'function(){if(!confirm("Esta seguro que desea anular la liquidación de la cuota?")) return false;}', // a JS function to be invoked when the button is clicked
'visible'=>'$data->prestamo->tipo_prestamo == "PART" && $data->estado_cuota == "' . Cuota::LIQUIDADO . '" ',
),
In the controller , action : "actionAnularLiquidacion" I want the Crid to refresh.
I think this is why I need AjaxRequest
if (Yii::app()->getRequest()->getIsAjaxRequest())
Yii::app()->end();
else
$this->redirect(array('view', 'id' => $p->id));
How to tell the controller that the event is AjaxRequest == true ??
Best Regards.
Nicolas