I have some code that modafies the CGridView widget. What I want to do is display a dialog box when someone clicks on the User Name link. Can someone please give me some assistance on this problem?
Below is my code snippet:
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'finduser-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
array(
'name' => 'user_name',
'type' => 'raw',
'value' => 'CHtml::link(CHtml::encode($data->user_name), /*ADD DIALOG BOX HERE*/)',
),
array(
'name' => 'user_email',
'type' => 'raw',
'value' => 'CHtml::encode($data->email)'
),
),
));
Also, to get this code to work I did modify my controller and model files.