CButtonColumn, buttons и click

Hello, everyone

Use widget CGridView

for the "Change" is defined property click - js function where I would like to get the values of fields in the current record.

But the $data is not available in js. Is there a chance for a given entry in JS?

$this->widget('zii.widgets.grid.CGridView', array(





            'name' => 'Тип',

            'value' => '$data->viewType',





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


                            'update' => array(

                                                'label' => 'Изменить',

                                                'click' => 'js:function(var r = $data) {


                                                                return false;



                            'delete' => array(