Yii::app()->clientScript->registerScript('subdeletejs', "
$('.sdelete').click(function(){
alert('hai');
});
");
<?php $this->widget('zii.widgets.grid.CGridView', array(
.....
....
'columns'=>array(
name,
array(
'class'=>'CButtonColumn',
'template'=>'{view}{update}{deletethis}',
'buttons'=>array(
'deletethis'=>array(
'imageUrl'=>Yii::app()->baseUrl.'/images/delete.png',
'options'=>array('class'=>'sdelete'),
),
),
),
),
)); ?>
This is sample code of my work format.
This code was working fine, When page load. When i use ajax update for gridview, it is not work. No error No output.
What i do ?

Help















