Display cgridview record using cjuidialog

Hi Yii master. i have some problem about cgridview and cjuidialog.

i’ve read this post how-to-call-cjuidialog-in-cgridview to call cjuidialog from cgridview.

It’s works if i use CHtml::image(), how is about cbuttoncolumn?? “$data->NIK” don’t works…

here's cgridview:


	'header' => 'OPTION',

	'class' => 'CButtonColumn',

	'template' => '{lihat}',


                   'lihat' => array(

                   'label'=>'Detail', // text label of the button

                   'imageUrl'=>Yii::app()->baseUrl . '/images/gr-view.png',  // image URL of the button. If not set or false, a text link is used

                   'options'=>array('style' => 'cursor: pointer;',

                		'onclick' => 'javascript: txt = \'$data->NIK\';



                                                $(\'#mydialog\').click(function() { $(this).dialog(\'close\'); }); return false;'





can i render content of cjuidialog using renderpartial, where’s the parameter obtained from the clicked cgridview record??

$this->beginWidget('zii.widgets.jui.CJuiDialog', array(


	    // additional javascript options for the dialog plugin


	        'title'=>'Detail Member',






$this->renderPartial('user_info', array('nik'=>$data->NIK));


thanks for helping Yii newbie…

  1. For CButtonColumn buttons, a PHP expression (for later evaluation) can be used only with url and visible. You may have to extend CButtonColumn.


Thanks for your reply Tommy,

it means i can’t use this code? or any solution for this problem?

thanks for helping Yii Newbie…