It's being alleged that Ted Cruz is, nasty and can't get along with people; the Senate and it's members being the primary example cited - at least by Trump. But leadership doesn't require people to like you; it does however require that your position and conviction can be articulated in such a way that it makes a stronger case for, than against.
One job of an effective President is to make the case that his/her position on an issue is what's best for the many as opposed to the few. That case, legislatively, must be made to Congress, which means that it must be able to persuade people with different political philosophies.
Here's a great illustration of this, it's well worth the 7 minutes of your time.
http://patterico.com/2016/02/01/the-remarkable-persuasive-ability-of-ted-cruz/

