cgridview

hi all:

i wanna rewrite default delete click function.




'buttons'=>array(

  'delete'=>array(

     'click'=>'js:function(alert("yes")<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' />',

  )

)




the default click function is still triggered…

is there any suggestion or anything solution to solved this problem ? i’m very appreciate it

Thanks a lot

As per current implementation the $buttons[‘delete’][‘click’] is created automatically regardless if it’s already setup like in your example so that your function does not get rendered…