I want to show tooltip in cgridview value as on hover on column it should show whole contant stored in variable. I want to show contant in variable $data["comment"] as a tooltip ( title ), and currently it shows whole string as - $data["comment"].
Below is current code what I used,

array(
'name'=>'Comment',
'header'=>'Comment',
'value'=>'(strlen($data["comment"])>35)?substr($data["comment"], 0, 35)."..":$data["comment"];',
'htmlOptions'=>array('title'=>'$data["comment"]'), // this what i have do
),

i think you have to extend your own CDataColumn or complete it in js end (better way , after page loaded and use jquery to set the title attr then reregister the tooltip plugin ) . just my thought and for you to referring

:

Yii::import('zii.widgets.grid.CDataColumn');
class MyDataColumn extends CDataColumn {
public function renderDataCell($row)
{
$data=$this->grid->dataProvider->data[$row];
//here you should get the "value" , but it will be calculated inside the renderDataCell function see CDataColumn::renderDataCellContent
$value = ??? // you may repeat the process that renderDataCellContent do
$this->htmlOptions['title'] = $value;
parent::renderDataCell($row);}
}