The ‘click’ property is not treated as an expression, instead you will need to be a little more creative. If you are not using the ‘url’ property, you could put the id in that, read it out with jQuery and show that.
'buttons'=>array(
'up' => array(
'label'=>'+',
'imageUrl'=>Yii::app()->request->baseUrl.'/images/email.png',
'url'=>'$row', //you can also use $data->attribute (where attribute is the model attribute you want)
'click'=>"function(){
alert($(this).attr("href"));
return false; //this is important or it will navigate to the url which is garbage
}",
),
Thanks for the suggestions. I was thinking that maybe I could create a button to contain onclick inside, using CGridView, like I would if I would parse all the dataProvider rows