Relation dropdown (autocomplete) display more then one field

I can configure the view that i can say i want to display title or id as preview value when i set a relation in content manager custom type for a type that has a relation (Add relation). How can set a concat of two values (via hooks maybe)?