Default select dropdown in CGridView

Hi,

I am using yii1 due to project requirement. I have problem in auto select the drop-down list according to the person mail id , who is login.




 array(

            'name' => 'email',

            'value' => '$data->requestAcceptedBy->email',

            'filter' => $filter,

        ),



I am using the above mention code to show a drop down where the array comes using $filter .

$filter contains the all the users email id. And that is working fine.

But my requirement is to selected automatically the logged in user mail by default, after as per change the drop-down will work accordingly.

Please help me out. I am trying to find the appropriate answer for few days…

i tried below link also but not working.

Please check for reference.

Many Thanks in advance