title: Yii CButtonColumn onclick get this value and show a dialog box with other model data
body: <p>I have a <code>IpModel</code> and second Model is <code>IpSenderScore</code> ,ip_id is foreign key in Ip_history model.</p>
  
  <p>Now I have create a custom button <code>senderscore</code> in Ip admin view like:</p>
  
  <pre><code>           'senderscore' =&gt; array(
                      'label'=&gt;'View SenderScore of This IP',
                      'imageUrl'=&gt;Yii::app()-&gt;request-&gt;baseUrl.'/images/loginhistory.PNG',array("style"=&gt;"width:16px;height:16px;"),
                      'click'=&gt;"function(){  $.fn.yiiGridView.update('user-grid', {
                                                  type:'POST',
                                                  url:$(this).attr('href'),
                                                  success:function(data) {
                                                            $('#AjFlash').html(data).fadeIn().animate({opacity: 1.0}, 3000).fadeOut('slow');           
                                                       $.fn.yiiGridView.update('user-grid');
                                                     }
                                              })
                                              return false;
                                        }
                               ",
                       'url'=&gt;'Yii::app()-&gt;createUrl("ipSenderScore/admin",array("ip_id"=&gt;$data-&gt;id))',
                  ),
  </code></pre>
  
  <p>I want to when I click on this button then show a modal window with all ip history that is saved in ipSenderScore  model with this ip_id.</p>
  
  <p>How it is possible?</p>