Multiple Image For Cbuttoncolumn In Cgridview

Hey guys,

have run into a small trouble with CButtonColumn in CGridView, following is my code snippet:


array(

	'class' => 'CButtonColumn',

	'template' => '{active}  {delete}',

	'buttons' => array(

		'active' => array(

			'label' => ($data->is_active == 1) ? 'Active' : 'Set Active',

			'imageUrl' => ($data->is_active == 1) ? '/images/Thumbs up.png' : '/images/Thumbs down.png',

			'url' => 'Yii::app()->createUrl("/installerversion/setactive", array("id"=>$data->id))',

			'click' => 'function(){setactive($(this).attr("href"),false); return false;}',

		)

	),

),

I want to show different image for one of the button in CButtonColumn based on the value in the raw, but this seems to be not working. I am not sure if this is valid, but is there any hack to work out this?

Any suggestions?

Thanks,

Raks

No reply???