I know that light are affected by gravity since they have both momentum and energy, but what about other magnetic waves such as radio waves or x-rays or other electromagnetic waves
All electromagnetic radiation is affected the same way.
(You said "magnetic" waves above, but I presume you meant "electromagnetic waves" as there is no such thing as a purely magnetic wave and in any case radio waves and the other things you mention are electromagnetic waves).