CGridView + DialogBox + copy clipboard help

Hi,

I have a CGridView stuff in my index.php view file. here’s my code




<?php

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

   'dataProvider'=>$dataProvider,

    'columns' => array(

        array(

          'name' => 'emailaddress',

          'htmlOptions' => array(

            'width' => '30',  

          ),

        ),

        array(

          'name' => 'secretkey',

          'htmlOptions' => array(

            'width' => '40px',  

          ),

        ),

        array(

          'header' => 'Options',

          'class' => 'CButtonColumn',  

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

        ),

        array(

          'header' => 'Copy URLs',

          'class' => 'CButtonColumn',

          'template' => '{view}',

          'viewButtonLabel' => 'copy URL',

          'buttons' => array(

            'view' => array(

              'click' => 'function(){alert("Hello");}',  

              'url' => '"#"',

            ),

          ),

      ),

    ),

));



my problem now is, I wish to have the last column’s button to show a dialog box that provide

a listing of data from another model, wherein, each of the rows in that dialog box, has a copy to clipboard

functionality, is that possible ? How? , any samples please?