Cgridview, Button Click With Variable

Hi all!

I’ve view with CGriedView and I need to load some other date in div behind it after click in my first grid.

I can’t resolved it. Please help me!

The some problem was wrote here: http://www.yiiframework.com/forum/index.php/topic/21765-cgridview-cbuttoncolumn-button-ajax-call/

I am trying do it but when I clicking on button, new request is invoked, not my function.

My code:




                'show' => array(

                    'click' => 'fin_invoices_detalis(this.href)',

                    'url' =>  '$data->InvoiceId',

                    'visible' =>  '$data->id',

                    'label' => 'Show details',

                ),



Please help.

please look at the following lines. And make sure all are done per your requirements




'buttonID' => array(

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

	'url'=>'...',   	// a PHP expression for generating the URL of the button

	'imageUrl'=>'...',  // image URL of the button. If not set or false, a text link is used

	'options'=>array(...), // HTML options for the button tag

	'click'=>'...', 	// a JS function to be invoked when the button is clicked

	'visible'=>'...',   // a PHP expression for determining whether the button is visible

)