How to create Ajax Requests from CButton Column


I have this in a column in a CGridView:

                      'anular' => array(

                        'label'=> ' Anular ',  // text label of the button


                        '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())



                	$this->redirect(array('view', 'id' => $p->id));

How to tell the controller that the event is AjaxRequest == true ??

Best Regards.