CGridView Custom Buttom

I am creating a custom button in CGridView. Please tell how to send row data as POST to ajax function on button click.

Here is the code…




<?php $this->widget('zii.widgets.grid.CGridView', array(

	'id'=>'system-addnl-inf-grid',

	'dataProvider'=>$systemAddnlInfModel,

	'columns'=>array(

		array(

                    'class'=>'IndexColumn',

                ),

                array(

                    'name'=>'systemname_search',

                    'value'=>'$data->systemCategory->system_name',                    

                ),

		'inf_item',

		'inf_value',

		'inf_description',

		array(

			'class'=>'CButtonColumn',

                        'buttons'=>array(

                            'mydelete'=>array(

                                'label'=>'Delete',

                                'url'=>'Yii::app()

                                            ->createUrl("/eeconfig/systemAddnlInf/customDelete", 

                                                array("id"=>$data->inf_id, "catid"=>$data->system_category_id))',

                                'options'=>array(

                                    'ajax'=>array(

                                        'type'=>'POST',

                                        'url'=>'js:$(this).attr("href")',

                                        'data'=>'{"id":"$data->inf_id"}',

                                    ),

                                ),

                            ),                            

                         ),              

                        'template'=>'{update} {mydelete}',

                        

		),

	),

)); ?>