This is possible by creating an additional method in your model class. You must create a getter and use it with yii magic as a regular property.
So, you have in your template:
$form->dropDownList( $formModel, 'ref_attribute', CHtml::listData( User::model()->findAll(array('order'=>'attribute1 ASC, attribute2 ASC')), 'id', 'fullName'), array() );
And in your model:
public function getFullName() { return $this->attribute1.' '.$this->attribute2.' ('.$this->attribute3.')'; }
source share