How to set the grid's selected column value in lookup field as shown in image?
My view code,
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider' => AgentsModel::model()->search(),//searchByLogin(AgentsModel::model()->g_user_id),
'id' => 'CGridViewUser',
'selectionChanged'=>'
function(id){
id=$.fn.yiiGridView.getSelection(id);
alert(id);
}',
'columns' => array(
'g_user_id',
'name',
'lastname',
'phone',
'mobile',
'email',
),
'htmlOptions' => array(
'style'=>'cursor: pointer;',
),
));
from above code im getting selected rowid,but dont know how to proceed further!!!